for(Iterator<Suit> i = suits.iterator(); i.hasNext();)
for(Iterator<Rank> j = ranks.iterator(); j.hasNext();)
deck.add(new Card(i.next(), j.next()));
Someone please explain why am i getting "NoSuchElementException" for these lines of code? I have solution how to avoid, however i want to know why exception thrown. Thanks in advance