Java
#狼大大
这个作者很懒,什么都没留下…
展开
-
while小知识
/**while循环控制条件和循环体的应用 */public class Test { public static void main(String[] args) { int a=1; int b=0;// while (a-->=0){ //这里(a>=0?a--)这是循环条件必须要执行,同一个括号里的东西,不是说你a>=0不满足直接退出,不进行a--了// b++;// }/原创 2021-10-21 16:45:55 · 217 阅读 · 0 评论 -
Java中set,map集合如何判断加入对象是否是重复对象
public class HashCodeDission { public static void main(String[] args) { Integer integer = new Integer(10); Integer integer1 = new Integer("10"); System.out.println(integer.hashCode()); System.out.println(integer1.hashCo原创 2021-10-21 15:18:41 · 1276 阅读 · 0 评论