![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思考题目
文章平均质量分 63
向上的狼
目前大四, 自学编程,非计算机专业,在这里分享我的学习路程.
展开
-
int类型和Integer类型数据的比较
int类型和Integer类型数据的比较原创 2022-05-01 22:37:59 · 3981 阅读 · 0 评论 -
包装类中的缓存设计(享元模式:Flyweight Pattern)
包装类中的缓存设计(享元模式:Flyweight Pattern)转载 2022-04-09 14:37:00 · 439 阅读 · 0 评论 -
进程线程、同步异步、阻塞非阻塞、并发并行、多线程
进程线程、同步异步、阻塞非阻塞、并发并行, 多线程原创 2022-04-07 11:49:47 · 262 阅读 · 0 评论 -
两个链表合成需要注意的问题
链表的合成需要注意的问题原创 2022-03-23 20:23:26 · 1002 阅读 · 0 评论 -
java中的增强for循环的原理和可能会踩得坑
在JAVA中,遍历集合和数组一般有以下三种形式:for (int i = 0; i < list.size(); i++) { System.out.print(list.get(i) + ",");}Iterator iterator = list.iterator();while (iterator.hasNext()) { System.out.print(iterator.next() + ",");}for (Integer i : list) { Sy原创 2021-09-28 21:11:52 · 242 阅读 · 0 评论 -
三目运算符使用的一些注意事项, 三目运算符中的一些“潜规则“
三目运算符格式:expression1 ? expression2 : expression3注意事项:1. java虚拟机在编译三目运算时是以 “?” 和 “:” 来判断各位置的代码充当的结构。“?”前作为一部分,“?”和“:”中间作为一部分,“:”后作为一部分 。表达式一:int temp = 0 < 1 ? c = c + 1 : d = d + 1;错误,编译无法通过。Java虚拟机把上式看成了int temp = (0<1?c=c+1:d)=d+1,并没有把d=d+原创 2021-09-28 20:12:16 · 1677 阅读 · 0 评论 -
带你了解父子类的静态代码块(static)和非静态代码块的执行
类中还存在两种特殊的代码块,即非静态代码块和静态代码块,前者是指直接由{ }括起来的代码,后者是指由static{ }括起来的代码。package com.Block;class Parent{ static String name="hello"; { System.out.println("parent Bolock 3"); } static { System.out.println("parent static blo原创 2021-07-24 17:28:11 · 581 阅读 · 0 评论 -
Java中如何用File类实现文件夹排版的分类输出?(递归算法的练习)
话不多说,直接上代码package com.softeem.wolf.homework21;import java.io.File;/** * Created by 苍狼 * Time on 2021-07-10 */public class test { public static void main(String[] args) { File file = new File("C:\\rep"); recusive(file, 0);原创 2021-07-16 11:43:41 · 151 阅读 · 0 评论