java编程:字符串this is a test 倒序输出 test is a this
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/10/01 05:41:56
java编程:字符串this is a test 倒序输出 test is a this
倒序应该是test a is this 如果你确定是test is a this,那么下面的代码对你没有帮助
public class Main{
public static void main(String[] args){
String str = "this is a test";
String[] words = str.trim().split(" ");
for(int i = words.length-1;i>=0;i--){
System.out.print(words[i]+" ");
}
}
}
再问: 对对对~~是test a is this~我打错啦~~谢谢你的回答!
public class Main{
public static void main(String[] args){
String str = "this is a test";
String[] words = str.trim().split(" ");
for(int i = words.length-1;i>=0;i--){
System.out.print(words[i]+" ");
}
}
}
再问: 对对对~~是test a is this~我打错啦~~谢谢你的回答!
java编程:字符串this is a test 倒序输出 test is a this
This is a test!
C++ 要求输入this is a test 输出test a is this
test this is a test a new test
This is just a test.
this is a test letter?
This is not a Test 歌词
first time login,this is a test
this is for test!
this is test
ok,this is test
This part of the test is a test of your ability to understan