Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. List<Integer> pos = new ArrayList<>();
  2.  
  3. while (j-- > 0) {
  4. String[] purposePositions = scanner.nextLine().split(" ");
  5. int purposeRowPosition = Integer.parseInt(purposePositions[0]);
  6. int purposeColPosition = Integer.parseInt(purposePositions[1]);
  7. pos.add(purposeRowPosition);
  8. pos.add(purposeColPosition);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement