This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to make a user-inputed word remembered? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make a user-inputed word remembered?" Watch "How to make a user-inputed word remembered?" New topic
Author

How to make a user-inputed word remembered?

Nik Badger
Greenhorn

Joined: Jan 18, 2013
Posts: 2
How do I use the function like the one like this:


I want to have one exactly like the function of remembering the double except with letters. Is this possible?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11161
    
  16

of course it is possible. have you looked at the API to see if the Scanner class has a method that might help you?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Nik Badger
Greenhorn

Joined: Jan 18, 2013
Posts: 2
I am a huge noob to this lol. No I havent
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38041
    
  22
Welcome to the Ranch
You can find out about Scanner here, and there is a section in the Java tutorials which you can find with ctrl-F-Scanner.
There is a well known pitfall with Scanner which isn’t in many of the books: I have described it here.
 
jQuery in Action, 2nd edition
 
subject: How to make a user-inputed word remembered?
 
Similar Threads
Having troubles with a complex program, need help with an illegal start of type error.
Getting a return value from a function and using it another fuction
How to return value back to main?
How should I split up this big method? Still need help please!
Scanners, Strings and doubles... Help!