List<String> (String[] list, int limit) { List<String> result; List<String> other = new ArrayList<>(); System.out.println("hello"); result = Arrays.stream(list).filter(Objects::nonNull).limit(limit).map(s -> s + s).sorted().collect(Collectors.toList()); return result; }