Pregunta de entrevista de IBM

Who to take input from console in java