📅  最后修改于: 2022-03-11 14:52:32.059000             🧑  作者: Mango
public class Test {
public static void main(String args[]) {
String string = args[0];
System.out.println("last character: " +
string.substring(string.length() - 1));
}
}