Guest User

Untitled

a guest
Nov 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public static List<Integer> javiaquitienestumetodo() {
  2.  
  3. try {
  4. List<String> lines = Files.lines(Paths.get("./input.txt")).collect(Collectors.toList());
  5. List<Integer> res = lines.stream()
  6. .map(x->Arrays.stream(x.split(","))).flatMap(Function.identity()).map(Integer::getInteger).collect(Collectors.toList());
  7. } catch (IOException e) {
  8. // TODO Auto-generated catch block
  9. e.printStackTrace();
  10. }
  11. return null;
  12. }
Add Comment
Please, Sign In to add comment