java exercise init