I recommend to tackle each at once. The problem has specific criteria:
asks the user for the name of a file
read file
Display first five lines (or all if less than 5)
Programming is a...
Type: Posts; User: copeg
I recommend to tackle each at once. The problem has specific criteria:
asks the user for the name of a file
read file
Display first five lines (or all if less than 5)
Programming is a...
Where are you stuck? Break the problem down into smaller pieces...do you know about java IO? Do you know how to ask the user and get user input?