[ale] OT, but not as OT as recent stuff (JAVA)
Jason Day
jasonday at worldnet.att.net
Thu Oct 31 16:33:56 EST 2002
On Thu, Oct 31, 2002 at 03:56:18PM -0500, Geoffrey wrote:
>
>
> Mazukna, Thomas wrote:
> >how did you managed to put number into the Object ? where is the value ?
>
> The object is returned by a hashtable. Basically need to do this:
>
> longvar[0] = hash.get(key) - hash2.get(anotherkey);
Assuming the objects stored in the hashtables are Long's, and that
longvar is an array of long's, try this:
longvar[0] = ((Long)hash.get(key)).longValue() -
((Long)hash2.get(anotherkey)).longValue();
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list