Pregunta de entrevista de Dream11

how to read from inputstream and print the values on screen