So I was assigned to make a diamond with asterisks in Java and I\'m really stumped. Here\'s what I\'ve come up with so far:
public class Lab1 { public s
for (int i = 0; i < 5; i++) System.out.println(" *********".substring(i, 5 + 2*i)); for (int i =5; i>0;i--) System.out.println(" **********".substring(i-1,5+(2*i)-3));