Pergunta de entrevista da empresa Dream11

how to read from inputstream and print the values on screen