• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class assignment results not as expected  RSS feed

 
Ron Ingram
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working on an assignment where user input is passed to give a filename. From there, the file is gathers and processed. I thought I figured it out, but I'm getting a results not as expected. Here are the results that are expected:


Here is what my program is giving:


So it looks like I'm one off... after the user input is passed the filename, it starts a new line. Any ideas?

Program:


 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not read all your code, but try to change the return total < limit to return total <= limit;
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!