public void go() { int n1, result; //PROGRAM STARTS HERE1showTextToUser("Hello End User, Good Day!");2showTextToUser("I am a Java program named 'Robo'");
Hello End User, Good Day!
I am a Java program named 'Robo'
Press any key to continue . . .
public void go() { int n1, result; //PROGRAM STARTS HERE showTextToUser("Hello End User, Good Day!"); showTextToUser("I am a Java program named 'Robo'");1n1 = getNumberFromUser("Please enter a number (integer): ");2showTextToUser("You entered: " + n1);
Hello End User, Good Day! I am a Java program named 'Robo'1Please enter a number (integer): 102You entered: 10 Press any key to continue . . .
public void go() { int n1, result; //PROGRAM STARTS HERE showTextToUser("Hello End User, Good Day!"); showTextToUser("I am a Java program named 'Robo'"); n1 = getNumberFromUser("Please enter a number (integer): "); showTextToUser("You entered: " + n1); result = n1 * 2;
public void go() { int n1, result; //PROGRAM STARTS HERE showTextToUser("Hello End User, Good Day!"); showTextToUser("I am a Java program named 'Robo'"); n1 = getNumberFromUser("Please enter a number (integer): "); showTextToUser("You entered: " + n1); result = n1 * 2; showTextToUser("Your number doubled is: " + result);
Hello End User, Good Day! I am a Java program named 'Robo'1Please enter a number (integer): 10 You entered: 102Your number doubled is: 20 I am done computing. I hope to see you again Press any key to continue . . .