java中如何去掉字符串中的空格

    技术2025-04-10  28

         String a="abc   ";

    1:String b =a.trim();

    2:String c=a.replaceAll(" ","");

    最新回复(0)