A ha,I'm here again,is there anybody miss me the rest time?
public class sugizo_can{
public static void main(String args[])
{
String s="Hi,sugizo_can,it's time to go to sleep now!It's 1:27
now.";
System.out.println("s="+s);
System.out.println("s.toLowerCase()="+s.toLowerCase());//转换为小写
字符串
System.out.println("s.toUpperCase()="+s.toUpperCase());//转换为大写
字符串
System.out.println("s.trim()="+s.trim());
System.out.println("s.substring(5)="+s.substring(5));
System.out.println("s.substring(3,5)="+s.substring(3,7));
String news=s.replace('t','H');
System.out.println("replace all 't' with 'H' :"+news);
}
}