摘要: package com.cyjt97.dt;import java.util.Date;public class day { public static void main(String[] args) { Date dt = new Date(); Date dt2 = new Date(0L); 阅读全文
posted @ 2023-03-18 18:03 文采呱呱 阅读(20) 评论(0) 推荐(0) 编辑
摘要: QQ的正则表达式验证: String QQ = "[0-9]\\d{4,11}";System.out.println("123456".matches(QQ)); 手机号验证:String phone = "^(13[0-9]|14[5|7]|15[0-9]|18[0-9])\\d{8}$"; S 阅读全文
posted @ 2023-03-18 15:47 文采呱呱 阅读(24) 评论(0) 推荐(0) 编辑
摘要: package com.cyjt97.bubbling; public class mid { public static void main(String[] args) { int arr[] = {11, 22, 33, 44, 55, 66, 77, 88, 99}; int index = 阅读全文
posted @ 2023-03-18 14:01 文采呱呱 阅读(8) 评论(0) 推荐(0) 编辑
摘要: //冒泡排序:package com.cyjt97.bubbling;import java.util.Arrays;public class test { public static void main(String[] args) { int arr[] = {11, 33, 22, 66, 5 阅读全文
posted @ 2023-03-18 11:04 文采呱呱 阅读(13) 评论(0) 推荐(0) 编辑