Java Application - example