It really doesn't matter where the input comes from. For example:
Scanner in = new Scanner(new File("myfile.txt");
BufferedReader in = new BufferedReader(new FileReader(new File("myfile.txt"));...
Type: Posts; User: literallyjer
It really doesn't matter where the input comes from. For example:
Scanner in = new Scanner(new File("myfile.txt");
BufferedReader in = new BufferedReader(new FileReader(new File("myfile.txt"));...
It really is up to the professor. When I took CS 1 at college, my professor taught us Scanner. Yet, two semesters later a new professor taught the course with BufferedReader. (However, I believe he...
Other than what helloworld said, Scanner internally buffers its input using a CharBuffer. Whereas a BufferedReader is meant for generic use for buffering characters from some sort of input.