title: method for validation of open and closed brackets
body: <p>I'm Java beginner and I have to realize one or more methods for validation of open and closed brackets. For example: we have ()(()((()))) - it's true, or if we have ()) - false. It seems to me there is some simple solution of that, but I don't have any thoughts...
  I do not ask you to write a solution (<em>well, if u want, I will not stop you</em> :D), but some hint would be nice.</p>