上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: import java.util.regex.Pattern; /** * @author hspcadmin * @date 2021-10-21 * */ public class MainApp { // 正则表达式 protected static final String REGEX = 阅读全文
posted @ 2021-10-21 15:59 柯南剧场版 阅读(100) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { // 字符串从后向前反向搜索, 搜索指定字符串在 源字符串的索引位置, 搜索不到返回-1 String str = "com_hundsun_customer"; int index = str.lastIndexOf 阅读全文
posted @ 2021-10-21 15:37 柯南剧场版 阅读(45) 评论(0) 推荐(0) 编辑
摘要: static final char UNDER_LINE = '_'; public static void main(String[] args) { // 下划线转驼峰 String source = "income_ratio"; String target = toCase(source); 阅读全文
posted @ 2021-10-19 21:14 柯南剧场版 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 一、格式化打印 格式说明符以百分号(%)开头,以转换器结尾 转换器是一个字符,指示要格式化的参数的类型 在百分号(%)和转换器之间,您可以具有可选的标志和说明符 java.util.Formatter中记录了许多转换器,标志和说明符 Converter Flag Explanation d 十进制整 阅读全文
posted @ 2021-10-19 19:14 柯南剧场版 阅读(525) 评论(0) 推荐(0) 编辑
摘要: // 1. 声明ObjectTest类 public class ObjectTest { public static void main(String[] args) { int ii = 100; // 测试断言 assert true; System.out.println("执行断言后置操作 阅读全文
posted @ 2021-10-15 20:11 柯南剧场版 阅读(46) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页