package scores;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;

import utils.Parser;

public class HighScore1 {
	private List<Integer> allScores;
	private String url;
	
	public HighScore1(String url) {
		this.allScores = new ArrayList<Integer>();
		this.url = url;
	}
	
	public List<Integer> getScores() {
		try {
			URL thingSpeak = new URL(this.url);
			URLConnection connect = thingSpeak.openConnection();
			BufferedReader buffer = new BufferedReader(new InputStreamReader(connect.getInputStream()));
			String inputLine;
			buffer.readLine();
			while ((inputLine = buffer.readLine()) != null) {
				if (!inputLine.equals("")) {
					System.out.println("Line : " + inputLine);
					allScores.add(Parser.parseScore(inputLine));
				}
			}
		}
		catch (MalformedURLException e) {
			e.printStackTrace();
		} 
		catch (IOException e) {
			e.printStackTrace();
		}
		return allScores;
	}
}

@@ -225,53 +225,8 @@
 ist;
-%0Aimport java.util.List;%0A%0Aimport utils.Parser;
 %0A%0Apu
@@ -258,28 +258,32 @@
 private 
-List%3CInteger
+ArrayList%3CString
 %3E allSco
@@ -376,23 +376,22 @@
 rayList%3C
-Integer
+String
 %3E();%0A%09%09t
@@ -422,20 +422,24 @@
 lic 
-List%3CInteger
+ArrayList%3CString
 %3E ge
@@ -787,87 +787,21 @@
 %09%09%09%09
-System.out.println(%22Line : %22 + inputLine);%0A%09%09%09%09%09allScores.add(Parser.parseScore
+allScores.add
 (inp
@@ -807,17 +807,16 @@
 putLine)
-)
 ;%0A%09%09%09%09%7D%0A

Modify getScores() method