How to print the highest mark of a student among 30 students in a particular subject using Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print the highest mark of a student among 30 students in a particular subject using Java?

9th May 2020, 6:37 AM
Ramya T
2 Answers
+ 1
Store the marks of 30 students in an array and find the greatest element of array.
9th May 2020, 6:38 AM
Souptik Nath
Souptik Nath - avatar
0
Collections has predefined sort method. So you can use it, just store in collection, and sort it..
9th May 2020, 8:31 AM
Jayakrishna 🇮🇳