Page 1 of 1

JDK 7 - string cases on switch statements

Posted: Tue Jan 24, 2012 7:02 am
by brutus
i think you have to take a look on this

http://stackoverflow.com/questions/3382 ... gs-in-java

Re: JDK 7 - string cases on switch statements

Posted: Tue Jan 24, 2012 7:07 am
by Zoey76
We are already using switch for Strings... :wink:

Re: JDK 7 - string cases on switch statements

Posted: Tue Jan 24, 2012 7:10 am
by brutus
any example :shock: thats so new for me i just saw it and i though my project is buged and doesnt give error :P

Re: JDK 7 - string cases on switch statements

Posted: Tue Jan 24, 2012 7:51 am
by Zoey76
brutus wrote:any example :shock: thats so new for me i just saw it and i though my project is buged and doesnt give error :P
I think Changeset 5011 was the first time that this feature was used in core, in datapack is used in many Java scripts.