填空题
下列程序段的输出结果为
【10】
。 public class Test { void printValue(int m) { do { Systern.out,println("The value is "+m); } while(-m>10); } public static void main(String arg[]){ int i=10; Test t=new Test(); t.print Value(i); } }
【参考答案】
The value is 10
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下面是一个Java Applet程序,请将程序补充完整使它的功能为计算数组各元素的平均值。import java.applet.Applet;import java.awt.*;public class Exam extends Applet{public void paint(Graphics g){int a[]={1,3,5,7,9,10};int total=0;float ave;for(int i=0;i<A.length;i++)total+=a[i];ave=total 【13】 ;g.drawstring( ave= +ave,30,60);}}
点击查看答案&解析
填空题
设x=1,y=2,z=3,u=false,u=y>z^x!=z;结果为 【11】 。
点击查看答案&解析
相关试题
线程的基本状态有新建、就绪、 【15】 ...
给较低优先级线程一个执行的机会调用 【1...