Skip to content

Instantly share code, notes, and snippets.

@volosgoto
Created March 11, 2016 06:51
Show Gist options
  • Save volosgoto/e358702b668f3df385dc to your computer and use it in GitHub Desktop.
Save volosgoto/e358702b668f3df385dc to your computer and use it in GitHub Desktop.
Lesson_03_Task 1* (SimpleAboutMeSample)
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