Question: Please answer the below question in Java, thank you. Question 7 Write a method countLines (String inFilename) of a class FileUtility which reads a binary

 Please answer the below question in Java, thank you. Question 7

Please answer the below question in Java, thank you. Question 7 Write a method countLines (String inFilename) of a class FileUtility which reads a binary byte file with name in Filename using FileInputStream. The method returns the no. of lines containing comments starting with "//" with optional spaces (but not other characters) before it. Each line is terminated by ' '. You may write other methods if necessary. Handle possible exception by outputting a suitable message if an exception occurs

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!