i have this program to do. i am new to java, if you could please help me. the program is:
Text Line Display Utility: Given the name of a text file, and a target line number, display the five lines immediately preceding the target line, the target line, and the five following lines. Stay in a loop that prompts for a new target line number or 'quit' (e.g., a target line number of '0' can be used to exit the loop). Enhancement: use a prompted variable to control the number of lines displayed before and after.
Looks like you have posted the question in multiple forums hoping someone will do the code for you. But I found the answer below very appropreate, since it says what should be done and letting you do the work