COuld someone let me know what is the procedure to register for the SCJP1.5 certification? Can registration be done online on the sun's website or do we have to get a voucher from the local prometric centre?
The array you are defining is a local (declaring within the method). Local variables cannot have any access modifiers (public, private, protected). I believe only "final" is allowed on a local variable. Remove 'private' from your code and it should work fine.