Hello everyone I am very new to Java programming and need help with this program. I need to print a list of numbers by columns instead of rows i.e. for the table: 10 12 13 14 I need to print 10, 15, 19, 12, 16, etc. instead of 10, 12, 13, 14, etc.
15 16 17 18
19 20 21 22
BUT I keep getting an exception in main thread error. The exact error message after I compile it is: "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at Assign7.main<Assign7.java:12>
Yes I am in a class but I'm allowed to ask for help outside of the classroom.