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


class AssertionWithValue {

	public static void main (String args[]) {

		int i;

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

			System.out.println (i+=2);
			assert ( (i<10) & (i>=0) ) : "\n\nValue of i was:" + i ;
		 }
	}

}

