In class Java demonstrations for CP1300 in Townsville (lecture code)