You certainly can:
assert x > 0 : "x must be greater than zero, but x = " + x;
See Programming with Assertions for more information.
You certainly can:
assert x > 0 : "x must be greater than zero, but x = " + x;
See Programming with Assertions for more information.