Update Valid Parentheses

Self-write edition.......
Run Status: Compile Error
Line 10: cannot find symbol: method put(char)