Lab 12-26-2005 (1)
public class Yourprogram
{
public static void main(String[] arg)
{
System.out.println( arg[0] + "" + arg[2] + "" + arg[1] );
System.out.println("The length of parameter is " + arg.length);
}
}
輸入 hi ! there
結果 hi there !
{
public static void main(String[] arg)
{
System.out.println( arg[0] + "" + arg[2] + "" + arg[1] );
System.out.println("The length of parameter is " + arg.length);
}
}
輸入 hi ! there
結果 hi there !
0 Comments:
張貼留言
<< Home