samples for Java utilities