“Given a Scanner reference variable named input that has been associated with an input source consisting of a sequence of lines, write the code necessary to read in every line and print it out on its own line. Use input.hasNextLine() and input.nextLine(). 1 If (input.hasNext()) 2 System.out.print(input.nextLine()); 3 – while (input.hasNext()){ System.out.print(“” 4 + input.nextline()); 5 }”

Get your paper done on time by an expert in your field.
plagiarism free