Can you have more than one user input prompt occur when running program?
I understand I can import Scanner to have the user input prompt appear upon clicking the "Run" button. Is it possible to write code that will execute a print statement that asks for a type of input, prompt the user, print the answer and a follow up question for a different type of input, and then prompt the user again? For example: Click Run Print "What is your name?" User input box appears on screen and user inputs their name Print "My name is (name)." "What is your age?" User input box appears on screen AGAIN and user inputs their age Print "I am (age) years old." And so on. For clarification, I am a novice and have only completed the second module of the Java course. I'm not asking for the syntax of this situation, merely if it can be done using the compiler provided with SoloLearn.