Menu

Please Answer Question Java Thank Question 7 Write Method Countlines String Infilename Cl Q43785388

Please answer the below question in Java, thank you. Question 7 Write a method countLines (String inFilename) of a class File

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 ‘n’. You may write other methods if necessary. Handle possible exception by outputting a suitable message if an exception occurs. Show transcribed image text 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 ‘n’. You may write other methods if necessary. Handle possible exception by outputting a suitable message if an exception occurs.

Expert Answer


Answer to Please answer the below question in Java, thank you. Question 7 Write a method countLines (String inFilename) of a class…

OR