// if you have problems compiling, try: javac AssertDemo.java -source 1.4
// problems in running? use: java -enableassertions AssertDemo

class AssertDemo {

	public static void main (String args[]) {

		int i;
		for (i=0; i<10; i++) {

			System.out.println (i+=2);

			assert ( (i<10) & (i>=0) ) ;

		}
	}

}

