String s = "1,2,3,4,5,6,7,8,";
//goal: how to delete the last one ","
s = s.substring(0, s.length() - 1);
System.out.println(s);
String s = "1,2,3,4,5,6,7,8,";
//goal: how to delete the last one ","
s = s.substring(0, s.length() - 1);
System.out.println(s);