Hey,
So, in our book (I'm doing them for practice, I don't know if we have to actually do them), it says to display the pattern:
J A V V A
J A A V V A A
J J AAAAA V V AAAAA
JJ A A V A A
So, I wrote:
public class Main {
public static void main(String[] args)
{
String j = "J";
String a = "A";
String v = "V";
System.out.println(" "+j+" "+a+" "+v+" "+v+" "+a);
System.out.println(" "+j+" "+a+" "+a+" "+v+" "+v+" "+a+" "+a);
System.out.println(j+" "+j+" "+a+a+a+a+a+" "+v+" "+v+" "+a+a+a+a+a);
System.out.println(" "+j+j+" "+a+" "+a+" "+v+" "+a+" "+a);
}
}
Which yes, it works, but I was wondering (First chapter of the book), is there any way that you think they meant to do it? Or do you think this is fine?
Thanks,
Justin W.