Skip to content

Instantly share code, notes, and snippets.

@renanboni
Created June 18, 2019 16:26
Show Gist options
  • Save renanboni/a6ab17369c69bcf2cc09465c76502bd0 to your computer and use it in GitHub Desktop.
Save renanboni/a6ab17369c69bcf2cc09465c76502bd0 to your computer and use it in GitHub Desktop.
boolean search(int numbers[], int x) {
for (int i = 0; i < numbers.length; i++)
if (numbers[i] == x) {
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment