I am having trouble figuring out how I can allow input that will consist of as many lines as the user wants. Input will consists of at least 1 line. On the first line will be an integer, this integer is suppose to tell the program how many lines are going to follow after, for ex.
5
line1
line2
line3
line4
line5
What should I do? Is there a type of scanner that will allow this or should i use loops?