Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Integer> pos = new ArrayList<>();
- while (j-- > 0) {
- String[] purposePositions = scanner.nextLine().split(" ");
- int purposeRowPosition = Integer.parseInt(purposePositions[0]);
- int purposeColPosition = Integer.parseInt(purposePositions[1]);
- pos.add(purposeRowPosition);
- pos.add(purposeColPosition);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement