View difference between Paste ID: LfRZxxCt and t3kvrWai
SHOW: | | - or go back to the newest paste.
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