1 StringBuilder a = new StringBuilder("This is testDemo"); 2 String b = "Hello"+a; //将StringBuilder类型转换成String类型 3 StringBuilder a = new StringBuilder(a); //将String类型转换为StringBuilder类型
原文地址:https://www.cnblogs.com/vegetableDD/p/11651281.html
时间: 2024-11-09 17:21:47