title: How do I insert a precondition in a java class method or constructor?
body: <p>This is for a java class I'm taking. The book mentions preconditions and postconditions but doesn't give any examples how to code them. It goes on to talk about asserts, I have that down, but the assignment I'm doing specifically states to insert preconditions and test the preconditions with asserts.</p>
  
  <p>Any help would be great.</p>