# Java: Java 1.5 Features

Variable length parameter lists
  >See today.java.net/pub/a/today/2004/04/19/varargs.html
StingBuilder
  Unsynchonized StringBuffer
Generics
  Using and Programming Generics in J2SE 5.0
Autoboxing
  Auto conversion between primitive and wrapper types.
`Formatted I/O`
  Formats numbers, reads numbers. http://java.sun.com/developer/JDCTechTips/2004/tt1005.html#2.
`for` statement for containers
  Like foreach Before

              //... Add example names to combo box from map.
              m_exampleCombo.addItem("- Select a test -");

              for (Iterator it = m_exampleMap.keySet().iterator(); it.hasNext(); ) {
                  m_exampleCombo.addItem((String)(it.next()));
              }

  After

              m_exampleCombo.addItem("- Select a test -");

              for (String name : m_exampleMap.keySet()) {
                  m_exampleCombo.addItem(name);
              }