import java.util.Scanner;
public class print{
private static Scanner kh;
	public static void main(String[] args) {
 kh = new Scanner(System.in);
		
System.out.println("Who thou be ?");
System.out.println(kh.nextLine());

System.out.println("I'll teach you something about printing");
System.out.print("This is the next line");
System.out.println("		but this isn't");
	}

}

Print basics