Java Array Question -


I am trying to create a triangle where empty cells have spaces and without empty empty cells, X is. Public static characters [] [] triangle (integer shape) {four [] [] triangle = new four [size] [size]; For (int i = 0; i

Anything is not working, it is not convinced what it is? Edit: I have found an improvement and subsequent changes have been made.

You have a second loop for example

  if (rows == column )  

X I do not know what your exact position is, but add it there.

(Also, use curly brackets, especially nested construction - this is more readable and less error Makes prone)


Comments