这个代码一下就执行完事了.
public class hi{
public static void main(String[] arg){
System.out.println("hi");final hi.thread t=new hi().new thread();
t.setDaemon(true);
t.start();}class thread extends Thread{
public void run(){
while(true){
//System.out.println("i am a daemon");
try{Thread.sleep(10000);}catch(Exception e){}
}
}}}
public class hi{
public static void main(String[] arg){
System.out.println("hi");final hi.thread t=new hi().new thread();
t.setDaemon(true);
t.start();}class thread extends Thread{
public void run(){
while(true){
//System.out.println("i am a daemon");
try{Thread.sleep(10000);}catch(Exception e){}
}
}}}
//执行。。//改变a,
if(a > 0) {
a(a);
}}