Question: Write a Java program that will read and display in the console the first 5 lines in the file (dummy.txt). 2. Write a Java program

Write a Java program that will read and display in the console the first 5 lines in the file (dummy.txt).
2. Write a Java program that will read and display in the console the first 5 lines in the file (dummy.txt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
