You are viewing a single comment's thread. Return to all comments →
U shall read Scan.hasNext like this.... does "Scan" have next element ?
If it has, it returns TRUE, so while something is TRUE, keep it going. That's why you don't need any comparing.