Java causing problem in input using scanner
musawershah1598 opened this issue · comments
When ever i run the code with below command having scanner in code.
java Hello < input.txt
My input file have all the inputs specify for each scanner it giving me the following error.
Exception in thread "main" java.util.NoSuchElementException: No line found at java.base/java.util.Scanner.nextLine(Scanner.java:1651) at Example.main(Example.java:7)
Rename your class as Main. Import all kinds of library that supports Scanner.
Thank you very much
…On Sat, Aug 17, 2019, 11:27 AM Ashadullah Shawon ***@***.***> wrote:
Rename your class as Main. Import all kinds of library that supports
Scanner.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7?email_source=notifications&email_token=AE3SXI6TBCYHYYWEECN4UNLQE6K4PA5CNFSM4IMOIOSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QETXA#issuecomment-522209756>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE3SXI5EHGUWCTSDMSW6LITQE6K4PANCNFSM4IMOIOSA>
.