Vote UpVote

Top Java 7 Features in Oxygene for Java

RemObjects Blogs – I saw an article listing the Top 8 features in Java 7 and realized a number of them were already present in Oxygene for Java. Strings in Case Statements In Java they are Switch statements, but in Oxygene we call them a case statements. Instead of a series of if statements, you can use a single case statement to evaluate multiple values of a string. method TestApp.ProcessStatus(status: String); begin case status of 'urgent': DoUrgent; 'high': DoHigh; 'low': DoLow; else DoNormal; end; end; This is much more elegant and easy to maintain. Hard to believe a lot of ...
Favorite? Off-Topic? Jim McKeeth @ 2012-01-04 16:52


Visits: 448
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)