Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static List<Integer> javiaquitienestumetodo() {
- try {
- List<String> lines = Files.lines(Paths.get("./input.txt")).collect(Collectors.toList());
- List<Integer> res = lines.stream()
- .map(x->Arrays.stream(x.split(","))).flatMap(Function.identity()).map(Integer::getInteger).collect(Collectors.toList());
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
- }
Add Comment
Please, Sign In to add comment