Created
March 11, 2016 06:51
-
-
Save volosgoto/e358702b668f3df385dc to your computer and use it in GitHub Desktop.
Lesson_03_Task 1* (SimpleAboutMeSample)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Lesson_03; | |
import java.util.Scanner; | |
public class SimpleAboutMeSample { | |
public static void main(String[] args) { | |
Scanner myScan = new Scanner (System.in); | |
System.out.print("Enter your name:" + " "); | |
String myName = myScan.nextLine(); | |
System.out.print("Enter your surname:" + " "); | |
String mySurname = myScan.nextLine(); | |
System.out.print("Enter your age:" + " "); | |
String myAge = myScan.nextLine(); | |
System.out.print("I'’m" + " " + myName + " " + mySurname + ", " + myAge + " " + "years old"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment