String类型的对象被倒序后还可以被以本身返回吗? String类型的对象被倒序后还可以被以本身返回吗?如果不可以该怎么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public static void main(String[] args) throws Exception{ String str = "AbcD"; StringBuffer sbuff = new StringBuffer(str); System.out.println(sbuff.reverse()); System.out.println(str); } String类是不可变类,它们的值在创建之后不能更改,想将他倒序,只有通过StringBuffer1楼的貌似是移花接木之术 Swing中WindowConstants.EXIT_ON_CLOSE和EXIT_ON_CLOSE直接写有什么区别? 在同学那找到一种数独算法,分享! Java源代码的折行规则 谁能讲解下。。。。。。。。。 有现成的方法把数字换成金额格式999,999,999的吗,就是每三位逗好隔开 请问一下 setBackingStoreEnabled 这个过期的方法 用什么方法代替啊 求救!关于编写计算器的计算部分。 两个对象怎样通信? <请教如何把IP地址转为主机名,焦急等待中...请高手帮忙> 关于java底层的实现的疑惑 JSP 作用域的问题 关于java序列化的一些思考
public static void main(String[] args) throws Exception{
String str = "AbcD";
StringBuffer sbuff = new StringBuffer(str);
System.out.println(sbuff.reverse());
System.out.println(str);
}
1楼的貌似是移花接木之术