Java Programming Tutorial 51 - Sort and Reverse a List with Collections.sort & Collections.reverse

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Why do we need the for each loop? You can just reverse-sort and sysout allGrades and it would be the same?

kawa_bata
Автор

you don't need the for loop to print the sorted arraylist

manojbanik
Автор

for some reason Collections.sort(allGrades); is not working i imported using import java.util.ArrayList;, but it doesnt work


i also have these in the program:

import java.util.Scanner;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

darkfire_