Page 1 of 1

public void addClimb(String peakName, int climbTime) { t

PostPosted: Fri Feb 01, 2013 9:30 am
by Google [Bot]1350
public void addClimb(String peakName, int climbTime) {
for (int i = 0; i < this.climbList.size(); i++) {
if (peakName.compareTo(this.climbList.get(i).getName()) <= 0) {
this.climbList.add(i, new ClimbInfo(peakName, climbTime));
return;
}
}
this.climbList.add(new ClimbInfo(peakName, climbTime));
}

Re: public void addClimb(String peakName, int climbTime) {

PostPosted: Sat Feb 02, 2013 7:18 pm
by 101dalmatians
SHUT UP!!!