Read a list of learners (name + mark) into an array of Learner objects, then find and print the learner with the highest mark. If there's a tie, print whichever one appears first.
Input / Output
Input: line 1 is N, followed by N lines each "name mark". Output: "name: mark" for the top learner.
Examples
Input
3 Thabo 78 Aisha 92 Sipho 85
Expected Output
Aisha: 92
Input
2 Zola 60 Ben 60
Expected Output
Zola: 60
+ 2 hidden tests checked on Submit.
Main.java is the entry point. Add extra classes for OOP exercises — they compile together.
Run your code to see test results here.