Skip to content

Instantly share code, notes, and snippets.

@BytewaveMLP
Created August 29, 2015 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BytewaveMLP/bf1ab61709d8e001f4f7 to your computer and use it in GitHub Desktop.
Save BytewaveMLP/bf1ab61709d8e001f4f7 to your computer and use it in GitHub Desktop.
fokken wot
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