Java Program using Netbeans 7.0