Geekific
What will be the output of the following code?--------------------public static void main(String[] args) { List<Integer> list = Arrays.asList(1, 2, 3, 4, 5); list.sort((a, b) -> b - a); System.out.println(list);}
1 month ago | [YT] | 21
Geekific
What will be the output of the following code?
--------------------
public static void main(String[] args) {
List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);
list.sort((a, b) -> b - a);
System.out.println(list);
}
1 month ago | [YT] | 21