We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
My solution is giving the error (shown below) in hackerrank. However, it's executing fine on my pc.
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Scanner.java:1585)
at Solution.main(Solution.java:14)
Day 6: Let's Review
You are viewing a single comment's thread. Return to all comments →
My solution is giving the error (shown below) in hackerrank. However, it's executing fine on my pc.
Here is my code :-