Java tutorial
//package com.java2s; import java.util.List; public class Main { public static int getRIndex(List<Float> list) { float max = 0; int RIndex = 0; for (int i = 0; i < list.size(); i++) { if (list.get(i) > max) { max = list.get(i); RIndex = i; } } return RIndex; } }