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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!