how to print numbers from a to b in an array java code example Example: java print array System.out.println(Arrays.toString(arr));