Shows exception= has no such element

Exception in thread “main” java.util.NoSuchElementException

i am unable to understand that how i ma iterarting over an empty set

@javadsalgo123
you may be facing this problem when you are trying to compile and run your program.
in order to compile and run your program you must put your testcases inside the given box .