This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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: 37230
519
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!