Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: [JLS] new long[0][ -1 ] Date: Tue, 28 Jul 2015 11:13:41 +0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 28 Jul 2015 11:13:41 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="16224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Outb9KupEG55tsx8DnpHMNe1Rv0+tyTI=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:ThbIjpV+C44jr/AsGdlweF27yFc= Xref: csiph.com comp.lang.java.programmer:32179 On Mon, 27 Jul 2015 22:10:41 -0400, Arne Vajhøj wrote: > But I think it has to be bundled with another feature: the use of other > types than int as array indexes. > I suppose you're thinking of the sort of flexibility offered by awk or Perl? IME you can achieve the same in Java by using TreeMap or HashMap, the choice probably depending on whether you need ordered access to the array elements. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |