D - OT: Java 1.5 language enhancements
- Ben Hinkle (12/12) Feb 05 2004 slashdot has an article about the Java 1.5 beta. I thought I'd post some...
- Damon Gray (7/27) Feb 05 2004 Static Import is where you would import a classes constants only:
slashdot has an article about the Java 1.5 beta. I thought I'd post some of the language enhancements since they'll seem very familiar: Autoboxing/Unboxing (isn't automatic in D but is simple) Enhanced for Loop (foreach) Generics Static Import (not sure what this is) Typesafe enums varargs see http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#lang Also the collections framework has been updated for 1.5: http://java.sun.com/j2se/1.5.0/docs/guide/collections/index.html
Feb 05 2004
Static Import is where you would import a classes constants only: import static java.awt.BorderLayout.*; getContentPane().add(new JPanel(), CENTER); Lets you use CENTER instead of BorderLayout.CENTER. This link is a good overview of what is new: http://java.sun.com/developer/technicalArticles/releases/j2se15/ Ben Hinkle wrote:slashdot has an article about the Java 1.5 beta. I thought I'd post some of the language enhancements since they'll seem very familiar: Autoboxing/Unboxing (isn't automatic in D but is simple) Enhanced for Loop (foreach) Generics Static Import (not sure what this is) Typesafe enums varargs see http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#lang Also the collections framework has been updated for 1.5: http://java.sun.com/j2se/1.5.0/docs/guide/collections/index.html
Feb 05 2004