Categoria: cheatsheet,java

Java cheasheet

1System.out.printf("%3d ", n); // print number with spaces. 1Arrays.copyOfRange([1,2,3], 1, [1,2,3].length); // subarray from 1 to length array Initialize 2 dim array 1int[][] arr = new int[2][2];