This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
But I would like to replace the 1,2,3 with identifiers like public static final Something = 1; public static final SomethingElse = 2; So that the case statements look like: case Something: break; case SomethingElse: break; Can I do this? How? I can't get it to compile. Thanks, Frank
posted 16 years ago
Oops I had a bug in my code, I've got it working now! Frank