, :
boolean a = true;
assert a : "A should be true"
JVM, (, JVM). , - . .
, , ( , , ).
- , , , sqrt sqrt, , , , ( , ). .
, , (. ) - . .
, assert, , , ArrayList.Create(), null. , . , ( ) factory.
int max(int[] a, int n) {
assert n <= a.length : "N should not exceed the bounds of the array"
assert n > 0 : "N should be at least one"
int m = a[0];
for( int i = 1; i < n; n++ ) {
if( m < a[i] )
m = a[i];
}
return m;
}