Skip to content

Instantly share code, notes, and snippets.

@au5ton
Created February 2, 2016 19:38
Show Gist options
  • Save au5ton/6a3c1e530e8ba00c9cc6 to your computer and use it in GitHub Desktop.
Save au5ton/6a3c1e530e8ba00c9cc6 to your computer and use it in GitHub Desktop.
public boolean findLetter(char c) {
if(word.indexOf(c) != -1) {
return true;
}
else {
return false;
}
}
public boolean findSubString(String s) {
if(word.indexOf(s) != -1) {
return true;
}
else {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment