What is assert?
The 'assert' keyword in java, as the name implies, makes an assertion about the code. It is used to specify something that holds the value 'true' all the time. It is usually followed by a boolean value ('true' or 'false'), or an expresion to be evaluated at runtime, that returns to a boolean. So if the boolean following the assertion is false, then a 'AssertionError' is thrown. If you want more information about the use then go to www.stackoverflow.com/questions/5216410/what-does-the-keyword-assert-means-in-java