Resubmit code for netbeans