上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: package com.ShiXun_JiChu;import java.util.Scanner;public class day20221121_评委打分 { public static void main(String[] args) { Scanner scanner = new Scann 阅读全文
posted @ 2022-11-27 01:43 陈焕新 阅读(331) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-27 01:41 陈焕新 阅读(33) 评论(0) 推荐(0)
摘要: //冒泡排序package com.ShiXun_JiChu;import java.util.Arrays;public class day20221119_05 { public static void main(String[] args) { int []arr={10,5,2,11}; S 阅读全文
posted @ 2022-11-19 11:37 陈焕新 阅读(23) 评论(0) 推荐(0)
摘要: //冒泡排序package com.ShiXun_JiChu;import java.util.Arrays;public class day20221119_05 { public static void main(String[] args) { int []arr={10,5,2,11}; S 阅读全文
posted @ 2022-11-19 11:36 陈焕新 阅读(20) 评论(0) 推荐(0)
摘要: //throw与throwspackage com.YiChang;public class E_D { public static void main(String[] args) { //new E_D().A(10,0);如果用throw或者throws万一出现异常就是停止执行接下来的代码 S 阅读全文
posted @ 2022-11-09 22:50 陈焕新 阅读(26) 评论(0) 推荐(0)
摘要: //多种捕获异常,及其捕获异常的等级和类型package com.YiChang;public class C { public static void main(String[] args) { int a=10; int b=0; try{ System.out.println(a/b); // 阅读全文
posted @ 2022-11-09 22:48 陈焕新 阅读(39) 评论(0) 推荐(0)
摘要: //关于栈溢出异常package com.YiChang;public class B { public static void main(String[] args) { try { new B().a(); //这是一个栈溢出异常StackOverflowError //catch()括号里面写 阅读全文
posted @ 2022-11-09 22:45 陈焕新 阅读(18) 评论(0) 推荐(0)
摘要: //最简单的捕获异常与处理异常package com.YiChang;public class A { public static void main(String[] args) { int a = 1; int b = 0;// System.out.println(a/b); try{//监控 阅读全文
posted @ 2022-11-09 22:40 陈焕新 阅读(21) 评论(0) 推荐(0)
摘要: //public class B类下新建了一个class C类//但是它不能用public修饰,因为一个类中,只能有一个public类//但是它能有多个class类package com.oop.demo08_N种内部类;public class B { //外部类的一个方法 public void 阅读全文
posted @ 2022-11-08 10:58 陈焕新 阅读(30) 评论(0) 推荐(0)
摘要: 最最最最正常的内部类与外部类 控制台输出的代码如下 阅读全文
posted @ 2022-11-08 10:55 陈焕新 阅读(24) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页