Some java examples i have studied