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
1 Respuesta
+ 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) );
}
}