Some Java practce for me.