反转输出并连接

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));
    
}
}

 

posted @ 2017-04-25 19:12  苏轼的红烧肉  阅读(105)  评论(0编辑  收藏  举报