Created
August 29, 2015 01:26
-
-
Save BytewaveMLP/bf1ab61709d8e001f4f7 to your computer and use it in GitHub Desktop.
fokken wot
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
public static boolean isStringAllLettersOrDigits(CharSequence s) | |
{ | |
for (int i = 0; i < s.length(); i++) { | |
if (!Character.isLetterOrDigit(s.charAt(i))) { | |
return false; | |
} | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment