Advertisement
fosterbl

Shakespeare.java - Starter

Dec 20th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. public class Shakespeare{
  2.  
  3.    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", " "};
  4.    public static String[] shortAlphabet = {"t", "o", "b", "e", "r", "n", " "};
  5.    public static String[] freqAlphabet = {"t","o"," ","b","e"," ","o","r"," ","n","o","t"," ","t","o"," ","b","e"};
  6.    public static String goal = "to be or not to be";
  7.    
  8.    public static void main(String[] args){
  9.      
  10.    }
  11.    
  12.    //A method to generate and return a random phrase given an alphabet
  13.    public static String randomPhrase(String[] alphabet){
  14.       return "";
  15.    }
  16.    
  17.    //A method to count and return the number of matched characters between a phrase and the goal
  18.    public static int numMatches( String phrase ){
  19.       return 0;
  20.    }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement