摘要: 1 /** 2 * String replaceAll(String regex,String str) 3 * 将当前字符串中满足正则表达式的部分替换为给定内容 4 */ 5 public class ReplaceAllDemo { 6 public static void main(Strin 阅读全文
posted @ 2021-09-22 20:37 牵你不解释 阅读(122) 评论(0) 推荐(0)
摘要: /** * char charAt(int index) * 获取当前字符串中指定位置处的字符 */ public class CharAtDemo { public static void main(String[] args) { // 0123456789012345 String line 阅读全文
posted @ 2021-09-22 20:35 牵你不解释 阅读(229) 评论(0) 推荐(0)
摘要: 1 public class BinarySortTree<E extends Comparable<E>> { 2 //根节点 3 private Node root; 4 private int size; //0 5 6 //添加操作 7 public boolean add(E e){ 8 阅读全文
posted @ 2021-09-22 20:31 牵你不解释 阅读(36) 评论(0) 推荐(0)