Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Display Page
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public List<String> displayPages2(List<String> input, int pageSZ) { } public static void main(String args[]) { //hostId, ListId, points, city List<String> input = new ArrayList<>(); input.add("1,28,310.6,SF"); input.add("1,5,204.1,SF"); input.add("20,7,203.2,Oakland"); input.add("6,8,202.2,SF"); input.add("6,10,199.1,SF"); input.add("1,16,190.4,SF"); input.add("6,29,185.2,SF"); input.add("7,20,180.1,SF"); input.add("6,21,162.1,SF"); input.add("2,18,161.2,SF"); input.add("2,30,149.1,SF"); input.add("3,76,146.2,SF"); input.add("2,14,141.1,San Jose"); List<String> result = displayPages2(input, 5); for (int i = 0; i < result.size(); i++) { System.out.println(result.get(i)); } } }
run
|
edit
|
history
|
help
0
Java Object Graph Dumper (iterative)
3f
ArrayOperation
Remove punctuation except numbers, commas and spaces
Switch case example
MyBirdClass
end of bala session
Stack implementation
1.7
My date and time