<awangdev>151. Reverse Words in a String_3.java
private String output(char[] arr) {

        StringBuffer sb = new StringBuffer();
        int count = 0;
        for (char c : arr) {
            count += c == ' ' ? 1 : 0;
            if (count != 0 & c != ' ') count = 0;
            if (count <= 1) sb.append(c);
        }
        return sb.toString().trim();
    }
private String var_0 ( char [ ] var_1 ) {
  StringBuffer var_3 = new StringBuffer ( ) ;
  int var_5 = 0 ;
  for ( char var_6 : var_1 ) {
    var_5 += var_6 == ' ' ? 1 : 0 ;
    if ( var_5 != 0 & var_6 != ' ' ) var_5 = 0 ;
    if ( var_5 <= 1 ) var_3 . append ( var_6 ) ;
  }
  return var_3 . toString ( ) . trim ( ) ;
}
