Skip to content

Instantly share code, notes, and snippets.

@johncrisostomo
Created June 10, 2011 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johncrisostomo/1018527 to your computer and use it in GitHub Desktop.
Save johncrisostomo/1018527 to your computer and use it in GitHub Desktop.
lab lecture
import java.io.*;
public class Age {
public static void main(String args[]) throws IOException {
int age;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter your age : ");
age = Integer.parseInt(br.readLine());
System.out.println("Your age is " + age);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment