Multidimensional lists | Sololearn: Learn to code for FREE!

0

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. https://code.sololearn.com/c50A12A17a22/?ref=app https://code.sololearn.com/cA17a6A4A9a2/?ref=app

7/11/2021 5:57:23 PM

Jace🎭

1 Answer

New Answer

+2

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) ); } }