alberthrocks

Java snipplet tested

Apr 29th, 2011
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class HelloWorld {
  3.  
  4.     public static void main(String[] args) {
  5.     String name;
  6.     System.out.println("Hello, World");
  7.     Scanner in = new Scanner(System.in);
  8.     name = in.nextLine();
  9.     System.out.println("Entered: "+name);
  10.     }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment