填空题
将下面Applet程序补充完整。
import java.awt.*:
import java.apptet.*;
public class Hi ______
public void paint(Graghics g)
g.drawstring("Hi!",2.5,2.5);
【参考答案】
extends Applet
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
在Java中,对象流以______方式传送和存储。
点击查看答案&解析
填空题
将下面程序补充完整。 public class PowerCale public static void main(String[] args) double x=5.0; System.out.println(x+ to the power 4 is +power(x,4)); System.out.println( 7.5 to the power 5 is +power(7.5,5)); System.out.println( 7.5 to the power 0 is +power(7.5,0)); System.out.println( 10 to the power -2 is +power(10,-2)); static double ______ (double x,int n) if(n>1)return x * power(x,n-1); else if(n<0)return 1.0 power(x,-n); else return n==0 1.0:x:
点击查看答案&解析
相关试题
Java中,可以通过建立java.lang.____...
如果一个线程调用______()方法,将...
Swing中的组件往往采用MVC结构,MVC指的是M...