I have two sets, each one contains Words(String)
Set <String> Set1= words1.keySet();
Set <String> Set2= words2.keySet();
I know the set is unordered , but i want to check if the First 5 elements of the both sets are equal or not , then check the next 5 elements .. etc any one can guide me ..