public class NewClass2 { public static void main(String[] args) { int x = 100; int y = 20; assert y > x; } }
i want to confirm my understanding, with the basic usage of assertion, as of now, im at the start of the book chapter im reading about assertions
question:
does assertion means in layman's term "make sure"
or in the above code, is it similar to or correct if i would say "make sure y is less than x, when y is set lower than x"?