Since java collection Set interface do not support index can we still use for loop with them. I have been extensively using for loop with List not Set, Please advise
Java EEProgramming
Last Comment
Jeffrey Dake
8/22/2022 - Mon
Jeffrey Dake
Yes, you can still loop through the values, but the order in which the elements will not be guaranteed to be in any order unless the set is an OrderedSet.