comefrom: <awangdev>Reverse Words in a String II_2.java
code: public void reverseWords(char[] s) {
          if (s == null || s.length == 0) {
              return;
          }
          int len = s.length;
          for (int i = 0; i < len / 2; i++) {
              char temp = s[i];
              s[i] = s[len - 1 - i];
              s[len - 1 - i] = temp;
          }
  
          int start = 0;
          int mid = 0;
          int end = 0;
          for (int i = 0; i < len; i++) {
              if (s[i] == ' ') {
                  mid = start + (end - start) / 2;
                  for (int j = start; j <= mid; j++) {
                      char temp = s[j];
                      s[j] = s[end - (j - start)];
                      s[end - (j - start)] = temp;
                  }
                  start = i + 1;
              } else {
                  end = i;
              }
          }
  
          mid = start + (end - start) / 2;
          for (int j = start; j <= mid; j++) {
              char temp = s[j];
              s[j] = s[end - (j - start)];
              s[end - (j - start)] = temp;
          }
          
      }
masked: public void var_0 ( char [ ] var_1 ) {
    if ( var_1 == null || var_1 . length == 0 ) {
      return ;
    }
    int var_2 = var_1 . length ;
    for ( int var_3 = 0 ;
    var_3 < var_2 / 2 ;
    var_3 ++ ) {
      char var_4 = var_1 [ var_3 ] ;
      var_1 [ var_3 ] = var_1 [ var_2 - 1 - var_3 ] ;
      var_1 [ var_2 - 1 - var_3 ] = var_4 ;
    }
    int var_5 = 0 ;
    int var_6 = 0 ;
    int var_7 = 0 ;
    for ( int var_3 = 0 ;
    var_3 < var_2 ;
    var_3 ++ ) {
      if ( var_1 [ var_3 ] == ' ' ) {
        var_6 = var_5 + ( var_7 - var_5 ) / 2 ;
        for ( int var_8 = var_5 ;
        var_8 <= var_6 ;
        var_8 ++ ) {
          char var_4 = var_1 [ var_8 ] ;
          var_1 [ var_8 ] = var_1 [ var_7 - ( var_8 - var_5 ) ] ;
          var_1 [ var_7 - ( var_8 - var_5 ) ] = var_4 ;
        }
        var_5 = var_3 + 1 ;
      }
      else {
        var_7 = var_3 ;
      }
    }
    var_6 = var_5 + ( var_7 - var_5 ) / 2 ;
    for ( int var_8 = var_5 ;
    var_8 <= var_6 ;
    var_8 ++ ) {
      char var_4 = var_1 [ var_8 ] ;
      var_1 [ var_8 ] = var_1 [ var_7 - ( var_8 - var_5 ) ] ;
      var_1 [ var_7 - ( var_8 - var_5 ) ] = var_4 ;
    }
  }
  