Added lines trick. Tiny Java exercise which I've done.