Question: File (String pathname) Creates a new File instance by converting the given pathname string into an abstract pathname. Scanner (File source) Constructs a new Scanner

File (String pathname) Creates a new File instance by converting the given pathname string into an abstract pathname. Scanner (File source) Constructs a new Scanner that produces values scanned from the specified file. boolean hasNextLine () Returns true if there is another line in the input of this scanner. void nextLine () Advances this scanner past the current line and returns the input that was skipped. void close () Closes this scanner. PrintWriter (File file) Creates a new PrintWriter, without automatic line flushing, with the specified file. PrintWriter (String fileName) Creates a new PrintWriter, without automatic line flushing, with the specified file name. void print(int i) Prints an integer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
