Java 字符串长度 Java StringBuffer replace() 方法 Java 连接字符串 Java 字符串长度 public class StringDemo { public static void main(String args[]) { String palindrome = "Dot saw I was Tod"; int len = palindrome.length(); System.out.println( "String Length is : " + len ); } } Java StringBuffer replace() 方法 Java 连接字符串