📅  最后修改于: 2022-03-11 14:52:06.644000             🧑  作者: Mango
import java.util.*;
class LastCharRemove
{
public static void main(String str[])
{
Scanner sc=new Scanner(System.in);
String str1=sc.nextLine();
int n=str1.length();
StringBuilder b= new StringBuilder();
b.append(str1);
b.delete(n-1,n);
System.out.println(b.toString());
}
}