Tuesday, August 16, 2011

User defined string in java?

I'm writing a basic program to have a user input their name and age and print it out. However, I don't understand how I can get the user to type in their name and turn it into a string. I'm using the java.util.scanner to get the age input, but I don't think I can get the name string in the same fashion.

No comments:

Post a Comment