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