User login

Reply to comment

Delete Last Character

If you want to delete the last character in a Java string, here is how you could it:

public static String deleteLastCharacter(String str){
return str.substring(0, str.length()-1);
}

Reply

The content of this field is kept private and will not be shown publicly.