Guest User

Untitled

a guest
Dec 7th, 2011
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   int noOfWords = 0;
  2.   String [] input = new String[100];
  3.   while(!Console.endOfFile())
  4.   {
  5.     input[noOfWords] = Console.readToken();
  6.     if (input[noOfWords] == "pardon" || input[noOfWords] == "excuse")
  7.       input[noOfWords] += Console.readToken();
  8.     noOfWords++;
  9.   } // while
  10.  
  11.   for (int index = 0; index < noOfWords; index++)
  12.     System.out.println((String) hashmap.get(input[index]) + " ");
  13.  
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment