public static boolean check(String line) {
		Stack<String> pila = new Stack<String>();
		for (int j = 0; j < line.length(); j++) {
			if (line.charAt(j) == '(' || line.charAt(j) == '[')
				pila.push(line.charAt(j) + "");
			else if (pila.isEmpty()
					|| (line.charAt(j) == ')' && !pila.peek().equals("("))
					|| (line.charAt(j) == ']' && !pila.peek().equals("[")))
				return false;
			else
				pila.pop();
		}
		return true && pila.size()==0;
	}