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.
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
Get step-by-step solutions from verified subject matter experts
