Tomando la entrada de cadena en Java
Scanner in = new Scanner(System.in);
String s = in.nextLine();
Hilarious Herring
Scanner in = new Scanner(System.in);
String s = in.nextLine();