List<Integer> () { ArrayList<Integer> listOfInteger; Integer[] arrayOfInteger = {2, 4, 8}; listOfInteger = Arrays.stream(arrayOfInteger).filter(number -> number >= 4).collect(Collectors.toCollection(ArrayList::new)); return listOfInteger; }