JDK7 new feature String in switch case with example
  JDK7 new feature String in switch case with example
2D Graphics
3D Graphics
Web Design & Development
Business Applications
Business Development
Databases
Desktop Programming
Operating Systems
Video Editing
Miscellaneous
Newsletter
User Login
  • Username
  • Password
Stats
  • Tutorials: 39,024
  • Categories: 572

Java Tutorials : JDK7 new feature String in switch case with example

string and switch in jdk7 example tutorial many a times we want to switch based upon string output received from user or other part of program but before JDK7 we can't do it directly instead either we need to map those String to final integer constant or char constant to use them inside switch and case or you need to fallback on if-else statement which gets clumsy once number of cases getting increased. But now with jdk7 you can directly use String inside switch and case statement. Though it’s pretty straight forward feature let see an example of how to use String inside switch and case statement in JDK7. JDK7 new feature String in switch case with example  tutorial
    View Tutorial

Detailed Information

     Tutorial: JDK7 new feature String in switch case with example
     Date Listed: 2011-09-01
     Submitted By: javabuddy
     Total Hits: 1553
     Rating Tutorial Rating 2.93Tutorial Rating 2.93Tutorial Rating 2.93Tutorial Rating 2.93Tutorial Rating 2.93 (30 votes)

    Discuss Tutorial
    Comment On Tutorial
    View Tutorial
    Report Broken Link

 





© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap