Java tomando entrada de consola

String str = System.console().readLine();
Excited Elephant