[JAVA] How can I print arrays with three types of fields needed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

[JAVA] How can I print arrays with three types of fields needed?

the fields are names, hours, and ranking example: marjorie, 8 hours, satisfactory and we're going to get the overall ranking at the end i tried coding it, please see my attached codes thank you for helping https://code.sololearn.com/cO08bghijYvZ/?ref=app

21st Oct 2018, 3:29 PM
Em Cee
Em Cee - avatar
1 Answer
0
line 10 11, duplicate variable hrs and name line 21 are you sure the logic are right ? ==< is not a valid operator, 'or' should be ||, >55 should be hrs > 55. but hrs and name are array, so this wont work.
21st Oct 2018, 4:36 PM
Taste
Taste - avatar