Question: Question 1 4 What are the first three lines printed to the console? public static void main ( String args ) { } scannerTest (
Question
What are the first three lines printed to the console?
public static void mainString args
scannerTest;
public static void scannerTest
try
Scanner scanner new Scannernew Fileinputtxt;
String line scanner.nextLinesplit;
System.out.printlnline;
System.out.printlnscanner next;
scanner. nextLine;
System.out.printlnscannernextLinesplit;
catchException ex
System.out.printlnException;
Contents of input.txt
Data, Row Row Row
avery,
alice,
hatter,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
