Using Java Programming Answer Question Write Method Countlines String Infilename Class Fil Q43785582
Using Javaprogramming to answer this question.
Write a methodcountLines(String inFilename) of a class FileUtility which reads abinary byte file with name inFilename using FileInputStream. Themethod 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 ifnecessary. Handle possible exception by outputting a suitablemessage if an exception occurs.
Expert Answer
Answer to Using Java programming to answer this question. Write a method countLines(String inFilename) of a class FileUtility whic…
OR