JDK 7 - string cases on switch statements

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
brutus
Posts: 325
Joined: Sat Nov 10, 2007 4:18 pm
Location: Bulgaria

JDK 7 - string cases on switch statements

Post by brutus »

i think you have to take a look on this

http://stackoverflow.com/questions/3382 ... gs-in-java
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: JDK 7 - string cases on switch statements

Post by Zoey76 »

We are already using switch for Strings... :wink:
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
brutus
Posts: 325
Joined: Sat Nov 10, 2007 4:18 pm
Location: Bulgaria

Re: JDK 7 - string cases on switch statements

Post 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
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: JDK 7 - string cases on switch statements

Post 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.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply