how to make a input console java code example Example: java taking console input String str = System.console().readLine();