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

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 closes the output file after the reading is all done. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). B 1 y S Paragraph Arial V 14px

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!