Tomando entrada de string em java

Scanner in = new Scanner(System.in);
String s = in.nextLine();
Hilarious Herring