格林模拟试题一(上)(6)
百度广告
question 20)
import java.awt.*;
public static void main(string argv){
}
button hellobut=new button("hello");
add(hellobut);
setsize(300,300);
}
//code end
1) two buttons side by side occupying all of the frame, hello on the left and bye on the right
3) one button occupying the entire frame saying bye
question 21)
public static void main(string argv){
int j;
for (i=1;i < 3;i++)
for(j=1; j< 3; j++) {
continue outer;
}
}
import java.awt.*;
public static void main(string argv){
}
button hellobut=new button("hello");
add(hellobut);
setsize(300,300);
}
//code end
1) two buttons side by side occupying all of the frame, hello on the left and bye on the right
3) one button occupying the entire frame saying bye
question 21)
public static void main(string argv){
int j;
for (i=1;i < 3;i++)
for(j=1; j< 3; j++) {
continue outer;
}
}
1) value for i=1 value for j=1
3) value for i=2 value for j=2
编辑推荐:
下载Word文档
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>