www.lautturi.com
/**
* @author lautturi.com
* Java example: Java Scanner
*/
import java.util.*;
import java.util.regex.Pattern;
public class Lautturi {
public static void main(String[] args) {
// read input from system standard input (Usually keyboard)
Scanner scan = new Scanner(System.in);
// // read input from the input stream
// Scanner scanner = new Scanner(InputStream input);
//
// // read input from files
// Scanner scanner = new Scanner(File file);
// Scanner scanner = new Scanner("test.txt");
//
// // read input from a string
// Scanner scanner = new Scanner(String str);
System.out.println("scanner take input from console:");
// take anything
String next = scan.next();
// take an integer
// int i = scan.nextInt();
// float f = scan.nextFloat();
// double d = scan.nextDouble();
// String str = scan.nextLine();
// char ch = scan.nextLine().charAt(0);
System.out.println(next);
}
}