java app sample