public static void main(String[] args) {
		// TODO Auto-generated method stub
		ValidParentheses sample = new ValidParentheses();
		String s = "]]";
		System.out.println(sample.isValid2(s));
		if (s.charAt(0) != '(' && s.charAt(0) != '{' && s.charAt(0) != '[')
			System.out.println("false");
	}