Java learning for David Qi