1) Implement (i.e., write the body of) the following method, countLines, that, given a BufferedReader parameter, counts and returns the number of lines of text in the corresponding file/stream.
public static int countLines(Buff eredReader in) throws IOException
_______________ _______________ _______________ _______________ __
2) Implement a new version of the countLines method that catches the possible IOException...
User Profile
Collapse
-
4 Java questions please help
-
Java help
I need to create a program in Java that:
1. Asks the user to enter the name of the input file containing heart rate measurements, and input the file name. .txt format
2. Ask the user to enter the name of the output file where the output HTML document will be saved, and input the file name
3. Open the input file by using a BufferedReader object
4. Open the output file by using a PrintWriter...
No activity results to display
Show More