Android Open Source - go-android argmin






From Project

Back to project page go-android.

License

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.

Java Source Code

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;
}




Java Source Code List

.argmin.java
com.example.pololanguage.pologo.ApplicationTest.java
com.pololanguage.pologo.BoardActivity.java
com.pololanguage.pologo.BoardFragment.java
com.pololanguage.pologo.QuitDialogFragment.java
com.pololanguage.pologo.SelectorActivity.java
com.pololanguage.pologo.StoneColor.java
com.pololanguage.pologo.StoredMove.java