Back to project page go-android.
The source code is released under:
MIT License
If you think the Android project go-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
public static int argmin(int[] a) { int min = Integer.MAX_VALUE; int argmin = 0; for (int i = 0; i < a.length; ++i) { if (a[i] < min) { min = a[i];/* ww w . j av a2s . c om*/ argmin = i; } } return argmin; }