diff --git a/src/main/java/d4dj/d4dj/App.java b/src/main/java/d4dj/d4dj/App.java index 82d18f6..9ec8918 100644 --- a/src/main/java/d4dj/d4dj/App.java +++ b/src/main/java/d4dj/d4dj/App.java @@ -22,6 +22,7 @@ import java.util.Scanner; import javax.imageio.ImageIO; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.math.NumberUtils; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; @@ -349,20 +350,33 @@ public class App case 2:{ if (scores.size()>20) { //See if this score is already in list. - int thisScore = Integer.parseInt(ss); - boolean found=false; - for (int i=0;i