Help me out with my Java application?