我想从字符串中删除前导和尾随空格:
String s = " Hello World ";
我希望结果如下:
s == "Hello world";
java whitespace
java ×1
whitespace ×1