Arrays.stream on int[] returns an IntStream , and to switch from int to String or any other Object , you should use the IntStream.mapToObj method, not map :
Arrays.stream(intArray).map(a -> Arrays.stream(a).mapToObj(i -> Integer.toString(i)).toArray(String[]::new)).toArray(String[][]::new);
The map method IntStream used only for displaying from int to int .
source share