📜  java 数组循环 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:04.647000             🧑  作者: Mango

代码示例1
public class Test {
    public static void main(String args[]) {
        String string = args[0];
        System.out.println("last character: " +
                           string.substring(string.length() - 1)); 
    }
}