writeNextInt and lastInt methods in Comp.