Map / ArrayList & Data / 8
🧩 Order
Names into a list
Order the lines so the program reads every name in class.txt into a list and prints "3 [Mina, Joon, Alex]".
- Scanner
- hasNext()
- add
📄 class.txt — a file the program reads
Mina Joon Alex