加载中...

上一页 1 ··· 4 5 6 7 8
摘要: 没有摘要 阅读全文
posted @ 2023-03-04 12:14 ChuenSan 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 外面风大,进来看看吧! 阅读全文
posted @ 2023-03-04 11:59 ChuenSan 阅读(52) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) {// 主函数 int[] arr = { 9, 4, 7, 6, 8, 5, 3, 2, 1, -100 }; int[] t = new int[arr.length]; mergeSort(arr, 0, arr.l 阅读全文
posted @ 2023-03-03 14:53 ChuenSan 阅读(13) 评论(0) 推荐(0) 编辑
摘要: /** * @param arr 需要排序的数组 * @param l 数组最左下标 * @param r 数组最右下标 */ public static void quickSort(int[] arr, int l, int r) { if (l >= r) {// 相等的时候即为只剩一个元素, 阅读全文
posted @ 2023-03-02 23:43 ChuenSan 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 一张图片,进来看看吧! 阅读全文
posted @ 2023-02-25 08:43 ChuenSan 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 数位拆分 while (n != 0) {// 数位拆分 int num = n % 10; n /= 10; } 阅读全文
posted @ 2023-02-25 08:35 ChuenSan 阅读(11) 评论(0) 推荐(0) 编辑
摘要: P1149 [NOIP2008 提高组] 火柴棒等式 public class P1149 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); search(scanner.next 阅读全文
posted @ 2023-02-25 08:18 ChuenSan 阅读(20) 评论(0) 推荐(0) 编辑
摘要: MyEclipse 快捷键4(ALT+CTRL) Alt+CTRL+↓ 复制当前行到下一行(复制增加) Alt+CTRL+↑ 复制当前行到上一行(复制增加) MyEclipse 快捷键5(ALT+SHIFT) Alt+Shift+R 重命名 Alt+Shift+M 抽取方法 Alt+Shift+C 阅读全文
posted @ 2023-02-24 16:46 ChuenSan 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 正则表达式 正则表达式:对特殊的输入格式进行验证;应用matches方法匹配 1、 \d:匹配一位数字 例: Scanner input=new Scanner(System.in); System.out.println("请输入要验证的内容:"); String s=input.next(); 阅读全文
posted @ 2023-02-04 21:04 ChuenSan 阅读(31) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8