我以前在其他地方发过的贴子,这几种方式都没问题,哪种较好或者说在什么情况下用哪种方法较好呢? // 方法一 public class firstManager implements Runnable { public void runTask() { (new Thread(this)).start(); } public void run() { System.out.println("\nfirst thread method!"); // Do some thing ... } } // 方法二 public class sec ...
public void main(){ Integer nullInt = null; tryChangeInteger(nullInt); if(nullInt == null){ System.out.println("\nThe Object nullInt not be changed."); }else{ System.out.println("\nThe Object nullInt now is " + nullInt); } } private void tryChangeInteger(Integer theInt){ the ...
iwinyeah
搜索本博客
我的相册
C8609f76-ccc2-3dbc-a9e8-b5e08077b8c2-thumb
jaccount1.0.7
共 5 张
最近加入圈子
存档
最新评论