New course! Every coder should learn Generative AI!
Try a free lesson0
Is scanner the only way in Java to read a file?
Scanner alternative
2 Answers
0
You can also read a file using 'BufferReader'.
0
No, but Scanner is the easiest to implement.
Scanner alternative