>>315

String str = "123,456,789";
long l = Long.parseLong(str.replaceAll(",", ""));