File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Switch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Switch" Watch "Switch" New topic
Author

Switch

Bryan Snipes
Greenhorn

Joined: May 09, 2008
Posts: 4
I'm back... that didn't take long!
I am taking an online course as well as using the Head First Java book. The online course discusses the Switch statement, but the book doesn't. Is the Switch something that is now outdated? Or was it put into the language after the book was published? Just need to know if this is something I should spend time learning.
Richard Chambers
Ranch Hand

Joined: Apr 03, 2008
Posts: 40
My textbook is based on 1.5, and I use 1.6

We covered Switch, and I've used it in course projects.

Not hard to learn, 10 or 15 minutes and you'll have it.
Bryan Snipes
Greenhorn

Joined: May 09, 2008
Posts: 4
Thanks! I've been programming for over 11 yrs. (just not Java), so I have seen similar types of statements. I was curious as to why the book didn't cover it (or why the course did).
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36574
    
  16
Welcome to the Ranch, "j rookie"

You would appear to have missed the naming policy on your way in, which requires a first name, space, second name, neither obviously fictitious. Please go to your profile using the above link and correct your displayed name to comply.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36574
    
  16
The switch block is still in common use, maybe less so if you use Swing because you can have on-screen menus rather than text menus.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Switch
 
Similar Threads
How to prepare for part II?
where can i buy Monson-Haefel's Book In Hong Kong
Marty - considered online teaching?
procedural switch - is the switch statement bad object oriented design?
SOURCEPATH