sample java application sample