Why does this program runs into infinite loop?

I got an email from my TA saying that my project runs into an infinite loop when she's testing it. I have no clue what went wrong. The report only shows one successful test result which I think might be the first test case she's run.

package lse;

import java.io.*;

import java.util.*;

/**

* This class builds an index of keywords. Each keyword maps to a set of pages in

* which it occurs, with frequency of occurrence in each page.

*

*/

public class LittleSearchEngine {

/**

* This is a hash table of all keywords. The key is the...

Read More »

By: StackOverFlow - 6 days ago

Related Posts

  • Older News
  • Question about scanner methods coderanchbeginnerjava (2 days ago) - I was solving BJP4 Self-Check 5.23: robustInput on Practice-It and I wrote this piece of code.System.out.print("Type your age: ");    while (!console.hasNextInt()){        System.out.print("Type your age: ");}It was supposed to work such that the program will not proceed until the user...