Is it allowed to name the class file as Scanner?
Yes you can name it as Scanner.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Yes you can name it as Scanner.