我是初学者,希望大家帮忙!!
參考答案://带字符串数组的hello,java world!
public class E2_4_1
{ public static void main(String agrs[])
{ String[]str={"Hello"," java"," "," world !"};
int i;
for( i=0;i<str.length-1;i++)
System.out.print(str[i]);
System.out.println(str[i]);
}
}