Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Shakespeare{
- public static String[] regAlphabet = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", " "};
- public static String[] shortAlphabet = {"t", "o", "b", "e", "r", "n", " "};
- public static String[] freqAlphabet = {"t","o"," ","b","e"," ","o","r"," ","n","o","t"," ","t","o"," ","b","e"};
- public static String goal = "to be or not to be";
- public static void main(String[] args){
- }
- //A method to generate and return a random phrase given an alphabet
- public static String randomPhrase(String[] alphabet){
- return "";
- }
- //A method to count and return the number of matched characters between a phrase and the goal
- public static int numMatches( String phrase ){
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement