去空格
trim()去除字符串前后空格
@Test
public void test(){
System.out.println(" hello hello hello ".trim());
System.out.println(" hello hello hello ");
}
hello hello hello
hello hello hello
2023-12-19 17:58:09
trim()去除字符串前后空格
@Test
public void test(){
System.out.println(" hello hello hello ".trim());
System.out.println(" hello hello hello ");
}
hello hello hello
hello hello hello