[ad_1]
List<Integer> data = Arrays.asList(23,6,13);
Collections.sort(data);
Collections.reverse(data)
data = data.sublist(0,2);
System.out.println(data);
6
[ad_2]
solved Finding the sum of the two greatest numbers of 3 [closed]
[ad_1]
List<Integer> data = Arrays.asList(23,6,13);
Collections.sort(data);
Collections.reverse(data)
data = data.sublist(0,2);
System.out.println(data);
6
[ad_2]
solved Finding the sum of the two greatest numbers of 3 [closed]