题目描述 给定一个只包含字符'(',')','{','}','['和']'的字符串,判断输入字符串是否有效。leetcode 20 解决 使用栈 代码: public boolean isValid(String s) { Stack<Character> stack = new Stack<>(