Java List IndexOf indexOfMax(List list)

Here you can find the source of indexOfMax(List list)

Description

index Of Max

License

Apache License

Declaration

public static int indexOfMax(List list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collections;
import java.util.List;

public class Main {
    public static int indexOfMax(List list) {
        return list.indexOf(Collections.max(list));
    }//from  w w  w  . ja  v a2 s  .  co m
}

Related

  1. indexOfIdentical(List list, Object value)
  2. indexOfIdentity(List l, T t)
  3. indexOfIgnoreCase(List values, String target)
  4. indexOfInstance(List list, Object object)
  5. indexOfInstance(List list, Class type)
  6. indexOfMax(List list)
  7. indexOfMinSize(final List> sets)
  8. indexOfNull(List list)
  9. indexOfThatStartsWith(List list, String startsWith, int startIndex)