I'm trying to use HashMap. Since there is no explanation about the API, I'm just guessing at things. I thought I could use this class to map Key -> Value.
val hash = new HashMap[Int,Int](size); hash.put(k,v); But when I try to retrieve the value I get a Box object (call to hash (k) returns x10.lang.Box object). I need an Int. How is this done? The spec mentions unboxing Box[T] to T but gives no explanation of how. Thanks. Jim ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users