so good, this movie 10/10. if (climbList.size() == 0){
return 0;
}
ClimbInfo currInfo = climbList.get(0);
String prevName = currInfo.getName();
String currName = null;
int numNames = 1;
for (int k = 1; k < climbList.size(); k++){
currInfo = climbList.get(k);
currName = currInfo.getName();
if (prevName.compareTo(currName) != 0){
numNames++;
prevName = currName;
}
}
return numNames;