Edited a value of i in CastDemo.java