What are different ways to declare two dimenssional arrays?
Answers
Answered by
0
· 6 ways to declare 2D array in Java. but above quote is declaring int[] only e.g. if multiple variables are declared in the same line they would be the type of int[] which is one dimensional, not two dimensional e.g. in following example prices is a 2D array but abc is just a one-dimensional int array.
Similar questions