Colorado State University

Recitation R13 - Enabling Assertions
Spring 2016

CS160: Foundations in Programming


Turning assert statements off and on

One of the great things about assertion statements is the ability to turn on and off functionality. This allows you to create as many as you want and leave them in your code when you turn in your assignment. To enable assertions: To disable assertions, repeat the navigation steps from above and take the -ea out of the VM arguments.
© 2016 CS160 Colorado State University. All Rights Reserved.