View difference between Paste ID: t3kvrWai and 0AVkrQ8Z
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();
5+
    input[noOfWords] = Console.readToken();
6-
   noOfWords++;
6+
    noOfWords++;
7
  } // while
8
9-
  for (int index = 0; index <= noOfWords; index++)
9+
  for (int index = 0; index < noOfWords; index++)
10-
    System.out.println((String) hashmap.get(input[index]) + " ");
10+
    System.out.println((String) hashmap.get(input[index]) + " ");
11
12