You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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>
.
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)
The text was updated successfully, but these errors were encountered: