Question
package project2; import project2.ChainHashMap; import java.io.*; import project2.Entry; import java.util.Scanner; public class HashTableMapTest { /** * @param args */ public static void main (String[] args)
package project2;
import project2.ChainHashMap; import java.io.*; import project2.Entry;
import java.util.Scanner;
public class HashTableMapTest {
/** * @param args */ public static void main (String[] args) { // declare locals variables/objects int wordCount = 0; Scanner doc = null; File file = null;
if (args.length > 0) file = new File (args[0]); else usage ("Must supply a file name on the command line.");
Which path should I put my txt file in for this code to read it? I am trying to do it in the command line as
java HashTableMapTest test.txt
but it cannot find the main class, any help please?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started