1. String str4 = "1,2,3,6,7,";
    2. str4 = str4.substring(0, str4.length() -1);