Created
February 2, 2016 19:38
-
-
Save au5ton/6a3c1e530e8ba00c9cc6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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