Changing USER input to caps when printing
I have a fine java program that asks the user a series of questions, then prints a story using these answers. For instance, one question I ask the user is for their name, and the story that prints is therefore about a person with that name. It works flawlessly as is, but my problem is this - if the user inputs "John" for their name, I now need this to print as "JOHN" in my story.
I list the Strings (name, age, etc); then I system.out.print the questions (what is your name?); then I system.out.println the story ("There was a person named" + name).
This prints out "There was a person named John", but I need it to print out "There was a person named JOHN".
This is a beginning level java program, and I'm wondering if there is a simple way to do this with toUpperCase or something of the like.