[ale] OT, but not as OT as recent stuff (JAVA)
Geoffrey
esoteric at 3times25.net
Thu Oct 31 15:56:18 EST 2002
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);
The values returned are large numbers (data transfer counts).
>
> Tomas
>
> -----Original Message-----
> From: Geoffrey [mailto:esoteric at 3times25.net]
> Sent: Thursday, October 31, 2002 2:55 PM
> To: ALE
> Subject: [ale] OT, but not as OT as recent stuff (JAVA)
>
>
> Okay Java gurus, I've come to the conclusion Java was designed to drive
> you insane whenever you need to convert types. I'm trying to take two
> java.lang.Objects which are a series of numbers subtract one from the
> other and store the result in a long value. I've tried:
>
> (long)theObject
> (Long)theObject
> Long.parseLong(theObject)
>
> I'm exhausted....
>
> Enlightenment would be blessed...
>
--
Until later: Geoffrey esoteric at 3times25.net
I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?
---
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