wood burning stoves 2.0*
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


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: 11356
    
  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: 39084
    
  23
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a user-inputed word remembered?