package com.itbaizhan; import java.util.Arrays;//自定义一个简单的包装类,仅限于练习 public class MyInteger { private final int value; private static MyInteger[]cache;//缓存【-128,127】之间的数字 private static final int LOW=-128; private static final int HIGH=127; static { cache=new MyInteger[HIGH-LOW+1]; for(int i=LOW;i<HIGH;i++){ cache[i-LOW]=new MyInteger(i); } System.out.println(Arrays.toString(cache)); } public MyInteger(int value){ this.value=value; } @Override public String toString() { return value+""; } public static MyInteger valueof(int value){ if(value>=LOW&&value<=HIGH){ return cache[value-LOW]; } return new MyInteger(value);} public static void main(String[] args) { MyInteger a=new MyInteger(10); MyInteger b= new MyInteger(100); MyInteger b2= new MyInteger(100); MyInteger b3 = new MyInteger(1000); MyInteger b4 = new MyInteger(1000); System.out.println(b==b2); System.out.println(b3==b4); int c=b.intvalue(); } public int intvalue(){ return value; } }
不清楚为什么会输出两个false
老师我写完后刷新就是这样,CSS资源加载不出来
react报错了
屏幕截图 2023-02-09 170527.png
老师,我不管怎么检查一直都是这样,css都没加载出来不知道为什么,
老师,有点晕了,只创建了t1t2,那主线程是哪个?是一个进程默认有一个线程吗
老师我这个地图这写完这样显示咋回事
老师,mysql-connector-j和mysql-connector-java是一样的效果吗
#encoding=utf-8
老师这是什么意思,为什么要加这个?不加可以吗?
import os allfile=[] def getFiles(path,level): childFiles = os.listdir(path) for file in childFiles: filepath = os.path.join(path,file) if os.path.isdir(filepath): getFiles(filepath,level+1) allfile.append("\t"*level+filepath) getFiles(os.getcwd(),0) for f in reversed(allfile): print(f)
老师,最后一个for循环中能reversed()方法有什么用,还有getFlies()函数中,level这个参数有什么用?
老师,我想问一下,使用with进行上下文管理的时候,open()方法里面规定的编码,什么时候使用“gbk”,什么时候使用“utf-8”
老师为什么会出现这个页面啊
老师:我也出现了同样的问题,这是什么原因啊?
刚刚去试了一下,发现页面特别长的时候,几乎没滚动多少就到底了,判断网页到底应该不止用这两个值吧
怎么解决呀。
老师这是什么问题
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637