package com.ssm.cts.test; import java.util.Enumeration; import java.util.HashMap; import java.util.Hashtable; import java.util.Iterator; import java.util.Map; import java.util.Stack; import java.util.Vector; public class ClassTest { // 测试 public static void main(String[] args) { String home = "chanpinxue.cn"; int len = home.length(); System.out.println("网址长度 : " + len); // 连接字符串 System.out.println("idodo".concat(".xin")); System.out.println("idodo" + ".xin"); System.out.println(String.format("%s%s", "idodo", ".xin")); // 替换 System.out.println("jiangzhihao".replace("hao", "9001")); } }