GUMP News
Status: Alpha
Brought to you by:
graham_hughes
A new subproject of GUMP uses GUMP technology to port Java bytecode generated from Java 5, 6 or 7 sourcecode into a format capable of execution on a CLDC VM (and so is usable on MIDP devices).
"New For ME"
New Java 5/6/7 features on Java ME (CLDC/MIDP). Mainly, support for new language features, but also one or two extras to make life a little easier. Main aims:
You get:
You need to:
Before, you wrote:
Vector v = new Vector(); v.addElement(new Integer(1)); v.addElement(new Integer(2)); v.addElement(new Integer(3)); v.addElement(new Integer(4)); for (Enumeration en = v.elements(); en.hasMoreElements(); ) { System.out.println(((Integer) en.nextElement()).intValue()); }
Now, you can write:
Vector<Integer> v = new Vector<>(); v.add(1); v.add(2); v.add(3); v.add(4); for (int i : v) { System.out.println(i); }