which I could find the solution to java.util.NoSuchElementException