Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with returning a boolean value...

 
Jame Sutton
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem got this method working...the goal of this method is to be able to delete the last entry entered on a scanner...But after I enter the sames number nothing happen...Have an idea why?Thank!




 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you setting the objects in monArraycaseSimple? Can you try outputting them right before the for loop? Also, try outputting the results from the scanner so you can see if they match what you are expecting.

It seems odd to me that you have three different Scanner objects. Why not just use one?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic