Multidimensional lists | Sololearn: Learn to code for FREE!


Multidimensional lists

Now I'm looking for a good way to work and display multidimensional lists in Java, here's some code that I have found and I've been messing with.

7/11/2021 5:57:23 PM


1 Answer

New Answer


the second code can be, but it can be printed simpler and more readable //import java.util.Arrays //individualLst(lstOrdered); System.out.println( Arrays.toString( lstOrdered.get(1) ) ); System.out.println(); allLists(lstOrdered); } private static void allLists( List<int[]> lstOrdered) { for (int[] unIntArray : lstOrdered) { System.out.println( Arrays.toString( unIntArray) ); } }