Question: Question 3 Write a method selective that receives two file names and does the following: public int selective (String inputfileName, String outputFileName) 1. opens the

Question 3

Write a method selective that receives two file names and does the following:

public int selective (String inputfileName, String outputFileName)

1. opens the input file for reading and the output file for writing

2. reads until the end of the input file, word by word

3. if the word contains the letter 'z', it is written to the output file

4. closes the output file after the reading is all done.

 Question 3 Write a method selective that receives two file names
java programming language

Save this response. Question 3 Write a method selective that receives two file names and does the following: public int selective (String inputfileName, String outputFileName) 1. opens the input file for reading and the output file for writing 2. reads until the end of the input file, word by word 3. if the word contains the letter 'z', it is written to the output file 4. closes the output file after the reading is all done. For the toolhar no

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!