Applet由浏览器自动调用的主要方法____,____,____和____分别对应了Applet从初始化、启动、暂停到消亡的生命周期的各个阶段。
查看答案
写出程序运行结果public class X3_3_1 {public static void main(String[] args) {for(int i=0; i<10; i++){if(i==5) break;System.out.print(i);}}}
写出程序的运行结果:public class X6_3_2 {public static void main(String[] args) {int a[]={36,25,48,14,55,40,32,66};int b1,b2;b1=b2=a[0];for(int i=1;ib1 ){if ( b1 >b2 ) b2=b1;b1=a[i];}System.out.println(b1+"\t"+b2);}}
写出程序的运行结果:public class X6_3_3 {public static void main(String[] args) {int a[]={36,25,48,14,55,40,32,66 };int b1,b2;b1=b2=a[0];for (int i=1;i
写出程序的运行结果:public class X6_3_8 {public static void main(String[] args) {String[] a = {"student" ,"worker" ,"cadre" ,"soldier" ,"peasant" };String s1,s2;s1 = s2 = a[0];for( int i = 1; i0) s1=a[i];if (a[i].compareTo(s2)<0) s2=a[i];}System.out.println(s1+"\t"+s2);}}