import java.util.logging.Level; import java.util.logging.Logger; public class Sun { public static int hh = 7; public static int mm = 0; public static int ss = 0; public static int angle = 0; Tree a; Ant b; SunFlower c; Sun(){ a = new Tree(); b = new Ant(); c = new SunFlower(); while(true){ try { Thread.sleep(1000);//1000毫秒,秒加一 } catch (InterruptedException ex) { Logger.getLogger(Sun.class.getName()).log(Level.SEVERE,null,ex); } addTime(); } } public void addTime(){ while(hh