Java Application Example