怎么改会输出 student a am ipublic class daoxu {public static void main(String args[]){String str="I am a student";String[] str1=str.split(" ");String[] str2=str.split(" ");for(int i=0;i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 15:21:03
怎么改会输出studentaamipublicclassdaoxu{publicstaticvoidmain(Stringargs[]){Stringstr="Iamastudent";String[

怎么改会输出 student a am ipublic class daoxu {public static void main(String args[]){String str="I am a student";String[] str1=str.split(" ");String[] str2=str.split(" ");for(int i=0;i
怎么改会输出 student a am i
public class daoxu {
public static void main(String args[]){
String str="I am a student";
String[] str1=str.split(" ");
String[] str2=str.split(" ");
for(int i=0;i

怎么改会输出 student a am ipublic class daoxu {public static void main(String args[]){String str="I am a student";String[] str1=str.split(" ");String[] str2=str.split(" ");for(int i=0;i
程序显得麻烦了.
String str="I am a student";
String[] str1=str.split(" ");//现在已经用空格分成四个了.
for(int i=3;i>=0;i--)//直接倒序输出数组
{
Console.WriteLine("{0} ",str1[i]) //占位符后面有个空格.
}