some java examples