comefrom: <qiyuangong>434_Number_of_Segments_in_a_String_1.java
code: public int countSegments(String s) {
           String trimmed = s.trim();
           if (trimmed.equals("")) {
               return 0;
           }
           return trimmed.split("\\s+").length;
       }
masked: public int sample_funcname ( String var_0 ) {
    String var_1 = var_0 . trim ( ) ;
    if ( var_1 . equals ( "" ) ) {
      return 0 ;
    }
    return var_1 . split ( "\\s+" ) . length ;
  }
  