Same function:
Normal:
for(String tmp:userThird.keySet()){
thirdInfo.add(userThird.get(tmp).getType());
}
Better:
for (Map.Entry<String, UserLogin> e : userThird.entrySet()) {
thirdInfo.add(e.getValue().getType());
}
Same function:
Normal:
for(String tmp:userThird.keySet()){
thirdInfo.add(userThird.get(tmp).getType());
}
Better:
for (Map.Entry<String, UserLogin> e : userThird.entrySet()) {
thirdInfo.add(e.getValue().getType());
}