Article View: borland.public.jbuilder.java.language
Article #17400Hashtable Creation and Population - Advice?
From: Sarah Hatherley
Date: Tue, 17 Nov 1998 00:00
Date: Tue, 17 Nov 1998 00:00
25 lines
1390 bytes
1390 bytes
I am writing a Java program using JBuilder 2, to create a Hashtable containing a large number of entries, in which the values stored are strings of random binary data 10 bytes long. I am using: BigInteger(int, Random) to generate the random values for the binary strings, as standard integers and longs are not large enough. Is there a way to use put() to place these randomly generated binary strings in the Hashtable? e.g. Object Key = "123456789"; BigInteger Value = new BigInteger(80,new Random(0)); put(Key,(Object)Value); // this gives a compilation error as below Error: (33) method put(java.lang.Object, java.lang.Object) not found in class table. Any help and examples would be greatly appreciated, Sarah.
Technical Details
Message-ID:
<911328167.20275.0.nnrp-09.9e985dd2@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,83ebc029b420b9a3,start X-Google-Attributes: gidf74b3,public From: "Sarah Hatherley" <sarah.hatherley@twinsoft.co.uk> Subject: Hashtable Creation and Population - Advice? Date: 1998/11/17 Message-ID: <911328167.20275.0.nnrp-09.9e985dd2@news.demon.co.uk> X-Deja-AN: 412855185 X-NNTP-Posting-Host: twinsoft.demon.co.uk:158.152.93.210 X-Trace: news.demon.co.uk 911328167 nnrp-09:20275 NO-IDENT twinsoft.demon.co.uk:158.152.93.210 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language X-Complaints-To: abuse@demon.net