首页 > 其他 > 详细

反转输出并连接

时间:2017-04-25 19:36:41      阅读:180      评论:0      收藏:0      [点我收藏+]
package lei;

public class Test2 {
public static void main(String[] args) {

    
    String s="我爱你";
    StringBuffer s1 = new StringBuffer("我爱你");
     String s2=new String(s1.reverse());
    System.out.println(s.concat(s2));
    
}
}

 

反转输出并连接

原文:http://www.cnblogs.com/zyy1130/p/6763817.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!