public Message remove() { assert count > 0 : "violated precondition size() > 0"; Message r = elements[head]; . . .}
java -enableassertions MyProg