permaculture playing cards
The moose likes Java in General and the fly likes Problem with returning a boolean value... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with returning a boolean value..." Watch "Problem with returning a boolean value..." New topic

Problem with returning a boolean value...

Jame Sutton

Joined: Jul 23, 2014
Posts: 10
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

Joined: May 26, 2003
Posts: 33132

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?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Problem with returning a boolean value...
jQuery in Action, 3rd edition