摘要: 1.Arrays.sort():排序 public void testArrayList(){ int[] a = {9, 8, 7, 2, 3, 4, 1, 6, 5}; Arrays.sort(a); // for(int arr:a) { // System.out.print(arr + " 阅读全文
posted @ 2021-06-25 18:55 zhanchenglan 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1.append():将指定的字符串追加到此字符序列 执行结果: 2.reverse():将此字符序列用其反转形式取代 执行结果: 3.delete(int start, int end):移除此序列的子字符串中的字符 执行结果: 4.insert(int offset, String str):将 阅读全文
posted @ 2021-06-25 15:35 zhanchenglan 阅读(50) 评论(0) 推荐(0) 编辑