This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with returning a boolean value...  RSS feed

 
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
Sheriff
Posts: 36463
462
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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!