摘要: Arraylist循环学习 普通for循环 public class arraylist_stu { public static void main(String[] args) { ArrayList<String> a = new ArrayList<>( Collections.nCopies 阅读全文
posted @ 2022-07-11 20:07 保护冲冲 阅读(363) 评论(0) 推荐(0)
摘要: Arraylist初始化 Array.asList初始化 asList用法规范 ArrayList<Type> obj = new ArrayList<Type>( Arrays.asList(Object o1, Object o2, Object o3, ....so on)); asList实 阅读全文
posted @ 2022-07-11 17:27 保护冲冲 阅读(73) 评论(0) 推荐(0)
摘要: java异常学习 java异常/错误分类 error ​ 系统错误:资源 exception ​ 异常 1. 运行时异常:能通过编译,运行时产生异常 2. 非运行时异常:文件打开错误,网络连接错误 异常的使用 异常相关关键词 try : 检测区域 try{ //需要检测的代码 System.out. 阅读全文
posted @ 2022-07-08 21:25 保护冲冲 阅读(35) 评论(0) 推荐(0)
'