int[] arr = Stream.of(new String[]{"1", "2", "3"}) .mapToInt(Integer::parseInt).toArray(); System.out.println(Arrays.toString(arr));