trim static method

String trim(
  1. String str
)

去除字符串两端的空白字符

Implementation

static String trim(String str) {
  return str.trim();
}