I am not able to find the error in my code. It is showing NoSuchElement Exception . Difficult to figure out
What is the error in my code
@ap8730390 please share your code by saving it on ide.codingblocks.com
NoSuchElement Exception is thrown by the nextElement method to indicate that there are no more elements. try to check your loop if it runs for more iterations than the input