int[] array = { 1, 2, 3, 4, 5 }; String s = String.join("", IntStream.of(array).mapToObj(String::valueOf).toArray(String[]::new)); System.out.println(s); // 12345