随笔分类 -  java基础

摘要:import java.util.Stack; public class Solution { Stack<Integer> stack1 = new Stack<Integer>(); Stack<Integer> stack2 = new Stack<Integer>(); public voi 阅读全文
posted @ 2023-11-22 15:32 Chenyi_li 阅读(3) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202311/1892439-20231121155050829-861150171.png) 阅读全文
posted @ 2023-11-21 15:50 Chenyi_li 阅读(5) 评论(0) 推荐(0) 编辑
摘要:https://zhuanlan.zhihu.com/p/627439840 阅读全文
posted @ 2023-11-18 19:08 Chenyi_li 阅读(4) 评论(0) 推荐(0) 编辑
摘要:参考:牛客https://m.nowcoder.com/questions?uuid=bcb966db4d2c43768bc077296a8a1017 阅读全文
posted @ 2023-11-03 21:56 Chenyi_li 阅读(1) 评论(0) 推荐(0) 编辑
摘要:import java.text.DecimalFormat; public class Main { public static void main(String[] args) { double number = 3.1415926; DecimalFormat df = new Decimal 阅读全文
posted @ 2023-10-02 15:40 Chenyi_li 阅读(53) 评论(0) 推荐(0) 编辑
摘要:## 1.涉及浮点数的运算 ![](https://img2023.cnblogs.com/blog/1892439/202307/1892439-20230728111958920-1501891018.png) ## 2.浮点数保留两位小数 1.System.out.printf可以,Syste 阅读全文
posted @ 2023-07-28 11:20 Chenyi_li 阅读(50) 评论(0) 推荐(0) 编辑
摘要:学习资料:https://www.bilibili.com/video/BV1QS4y1u7gG/?spm_id_from=333.337.search-card.all.click&vd_source=46d50b5d646b50dcb2a208d3946b1598 https://www.bil 阅读全文
posted @ 2023-07-25 16:24 Chenyi_li 阅读(34) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202307/1892439-20230719154338646-147101418.png) Error指程序处理不了的,或者不应该由程序处理的错误,这种错误往往是JVM中出现的问题。比如栈溢出错误,内存不足 阅读全文
posted @ 2023-07-19 15:58 Chenyi_li 阅读(13) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202307/1892439-20230718111244598-384187977.png) 转载:https://www.bilibili.com/video/BV1RV4y117an/?spm_id_fr 阅读全文
posted @ 2023-07-18 11:13 Chenyi_li 阅读(7) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202307/1892439-20230701143628687-1904329663.png) ![](https://img2023.cnblogs.com/blog/1892439/202307/1892 阅读全文
posted @ 2023-07-01 14:36 Chenyi_li 阅读(10) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/cstjzr/article/details/130586289 转载:https://juejin.cn/post/7125373259066900493 https://juejin.cn/post/6870298844425371655#commen 阅读全文
posted @ 2023-06-14 22:05 Chenyi_li 阅读(7) 评论(0) 推荐(0) 编辑
摘要:学习资料:https://www.bilibili.com/video/BV1ci4y1g7qD/?spm_id_from=333.337.search-card.all.click&vd_source=46d50b5d646b50dcb2a208d3946b1598 阅读全文
posted @ 2023-06-02 20:37 Chenyi_li 阅读(6) 评论(0) 推荐(0) 编辑
摘要:queue接口中的方法 Deque接口中的方法 阅读全文
posted @ 2023-05-15 19:11 Chenyi_li 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Java 将内存空间分为堆和栈。基本类型直接在栈中存储数值,而引用类型是将引用放在栈中,实际存储的值是放在堆中,通过栈中的引用指向堆中存放的数据。 转载:https://juejin.cn/post/6977210221542408199#comment 阅读全文
posted @ 2023-05-13 16:38 Chenyi_li 阅读(8) 评论(0) 推荐(0) 编辑
摘要:List<String> list = new ArrayList<>(); List<String> synchronizedList = Collections.synchronizedList(list); synchronized关键字对锁的优化: 默认采用是偏向锁,在程序运行中时候,始终是 阅读全文
posted @ 2023-05-06 16:09 Chenyi_li 阅读(12) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6844904101004705800 阅读全文
posted @ 2023-04-25 20:01 Chenyi_li 阅读(8) 评论(0) 推荐(0) 编辑
摘要:泛型擦除是指在Java编译器将泛型代码编译成字节码时,将类型擦除成它们原始的类型或者它们的上界限制,从而在运行时无法获得泛型参数的具体类型信息。泛型擦除的主要原因是为了保持泛型代码与非泛型代码之间的兼容性。 类型擦除和多态发生了冲突,为了解决这个问题编译器会产生一个桥方法。在虚拟机中会由参数和返回值 阅读全文
posted @ 2023-04-14 16:24 Chenyi_li 阅读(17) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6844904038442467336#heading-3 阅读全文
posted @ 2023-03-21 20:00 Chenyi_li 阅读(12) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/Gc_680/article/details/122568085 阅读全文
posted @ 2023-01-31 14:43 Chenyi_li 阅读(12) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/wangyingli/p/5912269.html 阅读全文
posted @ 2023-01-30 14:27 Chenyi_li 阅读(37) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示