随笔分类 -  java基础

摘要:## 泛型的引入 看下面这段代码: ```java private static int add(int a, int b) { System.out.println(a + "+" + b + "=" + (a + b)); return a + b; } private static float 阅读全文
posted @ 2023-07-30 23:29 蜀道,难 阅读(521) 评论(0) 推荐(0)
摘要:## 为什么需要异常 ### 引出 ```java public static void main(String[] args) { int a = 10; int b = 0; int number = a / b; System.out.println("程序继续向下运行"); } ``` 上面 阅读全文
posted @ 2023-07-09 01:11 蜀道,难 阅读(214) 评论(0) 推荐(0)