Basic java examples