<awangdev>151. Reverse Words in a String_1.java
public String reverseWords(String s) {
        if (s == null) return s;

        String[] strs = s.split(" ");
        StringBuffer sb = new StringBuffer();
        for (String str : strs) {
            if (str.length() != 0) sb.insert(0, str + " ");
        }
        return sb.toString().trim();
    }
public String var_0 ( String var_2 ) {
  if ( var_2 == null ) return var_2 ;
  String [ ] var_6 = var_2 . split ( " " ) ;
  StringBuffer var_8 = new StringBuffer ( ) ;
  for ( String var_9 : var_6 ) {
    if ( var_9 . length ( ) != 0 ) var_8 . insert ( 0 , var_9 + " " ) ;
  }
  return var_8 . toString ( ) . trim ( ) ;
}
