0
Hi classs, please explain to me: Can we get input from file using Scanner object? I think we can do that.
Scanner to get input from file
2 Antworten
+ 4
You sure can, just assign the file to a variable and create a Scanner(yourFileVariableName) object instead of Scanner(System.in)
0
Thank you