Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vincent-paing/2dffc1e2fa9b6b706037306a9eb4b3e7 to your computer and use it in GitHub Desktop.
Save vincent-paing/2dffc1e2fa9b6b706037306a9eb4b3e7 to your computer and use it in GitHub Desktop.
int max = array[0];
for (int i = 1; i < array.length; i++) {
if (array[i] > max) max = array[i];
}
return max;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment