J2JS
Home > Demos > Java 5 Features

Java 5 Features

Demonstrates the features Enums, Generics and Simple Looping.

The application is implemented in Deal.java and Card.java. Both classes are extracted from a SUN tutorial.

Here and with the Credit Card Validator Demo you see that the values of URL query parameters are passed to the declared onLoad-method.

You must pass parameters in the URL query, try CardDemo.html?numHands=3&cardsPerHand=5. Otherwise there will be a NullPointerException.


    
  
Last build on Sat Jan 03 11:06:48 CET 2009