By bloid
via en.newinstance.it
Published: Jun 28 2008 / 14:34
Apparently, with JDK 7 we will have Strings in switch statements. I got a SCPJ certification long time back, but if someone asks me to write a switch statement in a job interview today, I could probably fail: I begun writing Java code in 2000, and I bet I used switch statement six or seven times since then. Half of that times at the beginning for sure, and probably always I should have avoided that in favor of making better object oriented design.
Comments
amphi replied ago:
Switch is great for some things. And well, sometimes it would be really handy if strings were supported as well.
Voters For This Link (12)
Voters Against This Link (1)