Using a while loop, we read each line and append it to the string builder. Finally, we closed the bufferedReader. Since, the reader can throw IOException, we have the throws IOException in the main function as: public static void main(String[] args) throws IOException Here's the ...