public static void main(String[] args) {
    List<Integer> list = new ArrayList<>();

    list.add(1);

    int[] ints = list.stream().mapToInt(i->i).toArray();

    for (int i : ints) {
        System.out.println(i);
    }
}