List<Integer> IntegerList = new ArrayList<>(); int[] intArr = IntegerList.stream().mapToInt(Integer::intValue).toArray(); List<String> StringList = new ArrayList<>(); String[] strArr = StringList.stream().toArray(String[]::new);
Stream!!