Java passing 2 dimension array to method
arrays, java, multidimensional-array, parameter-passing
Solution
It's doing exactly what you want: you're pretending the (first-level) array is a `List` (of `Array`) and then printing the `toString()` of those, which looks something like `[Ljava.lang.String@pointer`. You probably want this instead:
System.out.println(Arrays.deepToString(array));
Problem
``` public static void main{ String [][] book = new String[100][6]; for(int i = 0; i < 1; i++) { for(int j = 0; j < 5; j++) { book[i][j] = i; } } arrayMethod(book); } public static void arrayMethod(String[][] array){ System.out.println(Arrays.asList(array)); } ``` arrayMethod method output is [[Ljava.lang.String;@639facbc, [Ljava.lang.String;@8059dbd, [Ljava.lang.String;@28b6e768, [Ljava.lang.String;@1271ba, .... Problem is that in arrayMethod I can't acces 2 dimension array data, where can be problem?