Java tutorial
//package com.java2s; public class Main { public static String[] getXyValuesFromCoords(String currentCoords) { String[] coords = currentCoords.toString().split(",\\s*"); return coords; } }