I have a number of lines as input and want to read and print the exact same thing. The problem is I don't know how! (readLine)
The input comes from a user typing in terminal.
the first integer is the number of lines in total!
input:
4
word
localization
internationalization
output:
word
localization
internationalization
readLinedoes read a line from stdin. What didn't work about it?readLineseveral times, or write your own utility based onInputStream