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

arraylist object iteration

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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -