There is no advantage of using Scanner against BufferedReader,but it makes reading from keyboard easier in terms of programing.
In BufferedReader, one has to take input in terms of String and then parse it into required data-type, this can be avoided using Scanner can easily take inputs without conversions.
But its not an advantage, it just makes life of programmer simpler.
posted 7 years ago
I think that is an advantage of using Scanner vs BufferedReader.
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad: