more java examples of usage