将字符串反向输出
package demo1;
public class ch06 {
public static void main(String[] args) {
String str1="To be or not to be";
StringBuffer bu=new StringBuffer();
System.out.println(bu.reverse());
}
}
时间最会骗人,但也能让你明白,这个世界上没有什么是不能失去的,留下的尽力珍惜,得不到的都不重要
浙公网安备 33010602011771号