package utils;

/**
 * Class containing methods to parse the result lines retrieved from ThingSpeak
 * @author Johan Brunet, Julien Gallego
 *
 */
public class Parser {

	/**
	 * Parsing method that parses the line to retrieve the score value
	 * @param s the line to parse
	 * @return the score value
	 */
	public static int parseScore(String s) {
		String[] parse = s.split(",");
		return Integer.parseInt(parse[2]);
	}
}

@@ -414,11 +414,111 @@
 %5B2%5D);%0A%09%7D
+%0A%0A%09public static String parseName(String s) %7B%0A%09%09String%5B%5D parse = s.split(%22,%22);%0A%09%09return parse%5B3%5D;%0A%09%7D
 %0A%7D%0A

Add method to parse the name of the player