Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

What are the three classifications of receivables? Discuss.

Answered: 1 week ago

Question

What is the price elasticity of supply of Picasso paintings?

Answered: 1 week ago