填空题以下函数的功能是删除字符串s中的所有数字字符,请填空。 viod dele(char
*s) { int n=0,i;
for(i=0;s[i];i++) if({{U}} {{U}} 9 {{/U}}
{{/U}}) s[n++]=s[i]; s[n]={{U}} {{U}}
10 {{/U}} {{/U}}; }
填空题下列程序的输出结果是______。 void main() int a=1,b=2; a=a+b;b=a-b;a=a-b; printf("%d,%d/n",a,b);
填空题一个具体的线程是由上{{U}} 【9】 {{/U}}、代码和数据组成。
填空题我们在Java程序中把关键字 ______ 加到方法名称的前面,来实现子类调用父类的方法。
填空题下面程序运行时输出的结果为 C:/Program Files is a directory. 将程序补充完整。 Import java.io.*; public class DirTest public static void main(String[] args) File myDir=Flew File("C:/Program Files/"); System.out.println(myDir+(______.isDirectory()?"is":"is not")+"a directory.");
填空题Java对象串行化技术,主要是通过ObjectInputStream类和______类来实现。
填空题在Java新的I/O功能中,通过文件锁定来实现多个线程的{{U}} {{U}} {{/U}} {{/U}},避免了可能存在的安全隐患。
填空题
请完善程序(程序文件名:Java_3.java)并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。
[题目要求] 统计一个英文文本字符串包含的英文元音字母的个数,使程序的运行结果如下:
The text contained vowels:88 源程序:
public class Java_3 { public static
void main(String[] args) {
String text = " Beijing, the Capital City, is the political,
"
+ "cultural
and diplomatic centre of China. It has"
+ "become a modern international cosmopolitan
city"
+ " with
more than 11 million people. The Capital"
+ " International Airport, 23.5 km from the city
centre,"
+
"is China's largest and most advanced airport. " ;
int vowels =0;
int {{U}}(1)
{{/U}}= text.length();
for(int i = 0;i<textLength; i++) {
char
ch=Character.toLowerCase( text.{{U}} (2) {{/U}});
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
{{U}} (3) {{/U}};
} System.out.println( "The text contained
vowels:" + vowels +"/n"); } }
填空题传递给实现了java.awt.event.MouseMotionListener接口的类中mouseDragged()方法的事件对象是{{U}} 【12】 {{/U}}类。
填空题安装完JDK后,还需设置path和 【15】 变量。
填空题软件需求规格说明书应具有完整性、无歧义性、正确性、可验证性、可修改性等特征,其中最重要的是______。
填空题类是由成员变量和 【9】 组成。
填空题类名与接口名都采用______描述符,并且所有单同的第一个字母大写。
填空题{{U}}【11】 {{/U}}是Java程序的并发机制,它能同步共享数据,处理不同事件。
填空题{{U}}【12】 {{/U}}布局管理器可以使多个构件共享同一个显示空间。
填空题多线程是Java程序的{{U}} 【7】 {{/U}}机制,它能同步共享数据、处理不同事件。
填空题设有数组定义:int MyIntArray[]={10,20,30,40,50,60,70};
则执行下面几个语句后的输出结果是______。
int s=0;
for(int i=0; i<My IntArray.length;i++)
s+=MyIntArray[i];
System.out.println(s);
填空题Java语言的各种数据类型之间提供两种转换:自动转换和 ______ 。
填空题在java. io。包中有某个类同时实现了DataInput 接口和DataOuput 接口,这个类是 【14】 。
填空题下面OneFrame类创建了一个名为This is a Frame的窗口。
import java.awt.*;
public class OneFrame extends Frame
{
public static void main(String args[])
{
OneFrame ft-new OneFrame("This is a Frame");
fr.setSize(200,200);
fr.setBackground(Color.yellow);
{{U}} 【11】 {{/U}}
public OneFrame(String str)
{
super (str) ;//调用父类Frame的构造函数
}
}
在画线处添加空缺语句使程序能够正确运行。