>>46

String str;
Pattern pat = Pattern.compile("(\\d+),(\\d+)");
Matcher mat = pat.matcher(str);
if(mat.find()){
  int x = Integer.parseInt(mat.group(1));
  int y = Integer.parseInt(mat.group(2));
}