Some java examples