java 怎么实现:This is Hello World!--> World Hello is This如题,前面没空格
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 16:21:51
java怎么实现:ThisisHelloWorld!-->WorldHelloisThis如题,前面没空格java怎么实现:ThisisHelloWorld!-->WorldHelloisThis如题
java 怎么实现:This is Hello World!--> World Hello is This如题,前面没空格
java 怎么实现:This is Hello World!--> World Hello is This
如题,前面没空格
java 怎么实现:This is Hello World!--> World Hello is This如题,前面没空格
public class Test {
public static void main(String[] args) {
String str = "This is Hello World!";
String str1 = str.substring(0, str.length() - 1);// 去掉标点符号
String[] strs = str1.split(" ");// 将去掉标点符号后的字符串进行拆分
StringBuffer sb = new StringBuffer(str.substring(str.length() - 1));// 创建带最后一个标点符号的stringBuffer类
for (int i = strs.length - 1; i >= 0; i--) {
sb.append(strs[i]).append(" ");// 打印一个word并加上一个空格
}
String result = sb.substring(0, sb.length() - 1);// 去掉最后一个空格
System.out.println(result);
}
}
java 怎么实现:This is Hello World!--> World Hello is This如题,前面没空格
java过滤器中实现Filter的类怎么写
This is my big brother,he is cool怎么翻译
This is Mary.He is English.这个病句怎么改
This is Santa Claus.He is in ( )clothes.怎么翻译?
Is this Jim?怎么回答yes,he is;Yes,it is.;Yes,this is.
This is (he).This is (me).
java编程:字符串this is a test 倒序输出 test is a this
Is this/that your uncle?怎么回答?是Yes,it is还是Yes,he is.
改错 Is this he pen
java中怎么实现阶乘,如计算1~100的阶乘
this is my dog he/she is a he/she is < >, he/she has< >ears he/she has a< >tai怎么写
在.net中怎么实现字符串反转,比如:this is a cat 反转后的结果应为 cat a is this
This is my pet.He is a(
This is Andy.He is from New
he is the owner of this bike he ---- this bike
Java MyEclipse 提示翻译open associated perspectiveopen associated perspective? This kind of project is associated with the Java perspective. This perspective is designed to support Java development.It offers a package Explorer,a Type Hierarchy,an
Name java:comp is not bound in this Context是什么意思WEB-INF/web.xmlserver.xmldb_connection_test.jsp