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

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -