Re: Programming challenge
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?
Re: Programming challenge
I am not confident in my abilities. I keep having to double back to earlier chapters to write the material. I am a complete novice. So currently no to all your questions.
Re: Programming challenge
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 workflow often consisting of trial and error - so I encourage you to try something that would tackle each of the above in turn. I am sure your book has examples and descriptions on how to do each of the above. If not, concentrate on a specific problem, make an effort, and post a specific question should you have problems or questions.
Re: Programming challenge