import java.util.*; class Ideone { // using Arrays.stream instead of Files.lines() because files not available here .toArray(int[][]::new)) // convert each line to int[][] .toArray(int[][][]::new); // convert all lines of file to int[][][] } }
Standard input is empty