sudde gameeef wrote: . . .
2d array: . . .
No, it isn’t. There is no such thing as a 2D array in
Java. What you have is an array of arrays.
I have had to go back and correct some of the formatting errors in your post, because you have lines
too long. I didn’t correct the inconsistent indentation, nor the use of
tabs and spaces together, nor the identifier names which do not follow the
conventions for this language.