public class Temp { public int min(int[] b){ int a=30; int c=0; for(int i=0; i<b.length; ++i){ if (b[i]<a){a=b[i]; c=i; }} return c; } ArrayList<Integer> t = new ArrayList<Integer>(); int[] a = {20,10, 50, 1, 34, 35, 36, 32, 10, 10, 35, 20, 50, 2000, 5}; } }