更多"下面程序的运行结果是【 】。
import java。io"的相关试题:
[填空题]下面程序的运行结果是【 】。
import java。io. *;
public class ABC
{
public static void main(String args[ ] )
{ int i ;
int a[ ] = {11,22,33,44,55,66,77,88,99};
for ( i = 0;i < = a.length/2 ;i + + )
System.out.print( a[i] +a[a.length-i-1] + " " );
System.out.println( );
}
}
[单项选择]下面程序的输出结果是( )。
import java. awt.*;
import java. applet.*;
public class HelloApplet extends Applet
public void paint(Graphics g)
g.drawString("Hello World! ",20,20);
A. 20,20
B. Hello World!
C. 编译不能通过
D. 以上都不对
[单项选择]下面程序的输出结果是( )。
import java.awt.*;
import java.applet.*;
public class HelloApplet extends Applet
public void paint(Graphics g)
g.drawstring("Hello World!", 20, 20);
A. 20,20
B. Hello World!
C. 编译不能通过
D. 以上都不对
[填空题]下面程序的运行结果是 【10】 。
import java.io.*;
public class ABC
{
public static void main(String args[])
{int i;
int a[]= { 11,22,33,44,55,66,77,88,99 };
for(i=0;i<=a.length/2;i++)
System.out. print(a[i]+a[a.length-i-1 ]+"");
System.out.println( );
}
}
[填空题]下面程序的运行结果是 【9】 。 import java。io. *; public class ABC public static void main(String args[ ] ) int i ; int a[ ] = 11,22,33,44,55,66,77,88,99; for ( i = 0;i < = a.length/2 ;i + + ) System.out.print( a[i] +a[a.length-i-1] + " " ); System.out.println( );
[填空题]下面程序的运行结果是 【9】 。
import java. io. * ;
public class ABC
public static void main( String args[ ] )
int i;
int a [ ] = 11, 22, 33, 44, 55, 66, 77, 88, 99 ;
for( i = 0 ;i< = a. length/2; i++)
System. out. print( a[i] + a[a. length - i - 1 ] +" ");
System. out. println( );
[填空题]下面程序的运行结果是 ______。
import java.io.*;
public class ABC
{
public static void main(String args[])
{ int i;
int a[]={11,22,33,44,55,66,77,88,99};
for(i=0;i<a.length/2;i++)
System.out.println(a[i]+a[a.length-i-1]+" ");
System.out.println( );
}
[填空题]下面程序的运行结果是 ______。
import java.io.*;
public class ABC
public static void main(String args[])
int i;
int a[]=11,22,33,44,55,66,77,88,99;
for(i=0;i<a.length/2;i++)
System.out.println(a[i]+a[a.length-i-1]+" ");
System.out.println( );
[填空题]下面程序的运行结果是________________。
import java.io.*;
public class ABC
{
public static void (String args[])
{int i;
int a []={11,22,33,44,55,66,77,88,99};
for (io;i<=A.length/2;i++)
System.out.Print(a[i]+a[A.length-i-1]+""):
System.out.println( );
}
}
[填空题]下面程序的运行结果是________________。
import java.io.*;
public class ABC
public static void (String args[])
int i;
int a []=11,22,33,44,55,66,77,88,99;
for (io;i<=A.length/2;i++)
System.out.Print(a[i]+a[A.length-i-1]+""):
System.out.println( );