Starting from:
$30

$24

Assignment 3 Solution

Implement the Speaker interface described below and create three classes that implement Speaker in various ways. Create a driver class whose main method instantiates some of these objects and test their abilities.
public interface Speaker {

public void speak();

public void announce( String str );




}

Create a program that reads a text (.txt) file and does the following:

Count the number of lines in the file
Count the number of words in the file
The text file will be read from the command prompt:

eg: (for FileScan.java program)

c:\ java FileScan myTextFile.txt

More products