Created
September 17, 2023 06:52
-
-
Save h-hub/7cb524f1c6035bf8758f5a511216663c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Please do not use this | |
static boolean isElementExistUgly(int[] ints, int b){ | |
try{ | |
int i=0; | |
while (true){ | |
if(ints[i++]==b) return true; | |
} | |
} catch(ArrayIndexOutOfBoundsException ex){ | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment