java - How can I get the index of the highest number in an Object[] in an ArrayList -
how can find highest value or index of highest value in object in arraylist shown below.
i attempted iterate arraylist takes whole object , need each element. appreciated thanks
if question right use this.
for (int = 0; < arraylist.size(); i++) { object array[] = arraylist.get(i); (int j = 0; j < array.length; j++) { // compare here } }
first iterate on arraylist , on each array.
Comments
Post a Comment