Java 字符串方法removeCharAt Java Arrays equals方法 Java 字符串方法removeCharAt Java 字符串方法removeCharAt public class Main { public static void main(String args[]) { String str = "this is Java"; System.out.println(removeCharAt(str, 3)); } public static String removeCharAt(String s, int pos) { return s.substring(0, pos) + s.substring(pos + 1); } } Java Arrays equals方法 Java 字符串方法removeCharAt