java programming

profilesanzytha
aquestion.docx

## Write a program including a runnable class and a test

class \Assign3Qn1XX" to count the words in one or more _les. Start a new thread

for each file. For example, for files \myleo.txt", \history.txt",

\CSDepartment.txt", and \studentOrganization.txt", the program might print the following:

CSDepartment . txt : 221

studentOrganization . txt : 184

history .txt: 280

myleo . txt : 192

Program snippet:

/**

* Counts how many words in files.

* @author Last Name, First Name

* @date Date

*/

public class Lab03XX {

public static void main ( String argv []){

String [] list = {" myleo . txt ",

" history . txt ",

" CSDepartment .txt",

" studentOrganization . txt "};

// add statements below

}

}