comefrom: <awangdev>Decode String_2.java
code: private String popStack(Stack<Object> stack) {
  
          StringBuffer sb = new StringBuffer();
          Stack<String> buffer = new Stack<>();
          while (!stack.isEmpty() && (stack.peek() instanceof String)) {
              buffer.push((String) stack.pop());
          }
          
          while (!buffer.isEmpty()) {
              sb.append(buffer.pop());
          }
          return sb.toString();
      }
masked: private String var_0 ( Stack < Object > var_3 ) {
    StringBuffer var_5 = new StringBuffer ( ) ;
    Stack < String > var_7 = new Stack < > ( ) ;
    while ( ! var_3 . isEmpty ( ) && ( var_3 . peek ( ) instanceof String ) ) {
      var_7 . push ( ( String ) var_3 . pop ( ) ) ;
    }
    while ( ! var_7 . isEmpty ( ) ) {
      var_5 . append ( var_7 . pop ( ) ) ;
    }
    return var_5 . toString ( ) ;
  }
  