Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34283

Re: Working with an array of TreeSet

Newsgroups comp.lang.java.programmer
Date 2016-05-11 14:33 -0700
References <87lh3ijg9u.fsf@Equus.decebal.nl> <ngt1mp$a3t$1@gwaiyur.mb-net.net> <87a8jxk3r2.fsf@Equus.decebal.nl> <ngttab$rer$1@dont-email.me> <8760uljcr7.fsf@Equus.decebal.nl>
Message-ID <d9ec04bf-e5f1-40ae-91db-63c6319feba3@googlegroups.com> (permalink)
Subject Re: Working with an array of TreeSet
From FredK <fred.l.kleinschmidt@gmail.com>

Show all headers | View raw


On Wednesday, May 11, 2016 at 12:13:59 AM UTC-7, Cecil Westerhof wrote:
>I would like to have an array of TreeSet<Integer>. But that is not 
>possible in Java.

Why do you say it is not possible? This works fine for me:

      TreeSet<Integer>[] tsia = new TreeSet[5];

      for (int i = 0; i < tsia.length; i++) {
         tsia[i] = new TreeSet<Integer>();
      }

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Working with an array of TreeSet Cecil Westerhof <Cecil@decebal.nl> - 2016-05-10 13:37 +0200
  Re: Working with an array of TreeSet Eric Douglas <e.d.programmer@gmail.com> - 2016-05-10 04:52 -0700
    Re: Working with an array of TreeSet Cecil Westerhof <Cecil@decebal.nl> - 2016-05-10 15:07 +0200
  Re: Working with an array of TreeSet Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-10 08:03 -0400
  Re: Working with an array of TreeSet Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-05-10 18:19 +0200
    Re: Working with an array of TreeSet Cecil Westerhof <Cecil@decebal.nl> - 2016-05-10 23:22 +0200
      Re: Working with an array of TreeSet Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-05-10 20:14 -0400
        Re: Working with an array of TreeSet Cecil Westerhof <Cecil@decebal.nl> - 2016-05-11 09:05 +0200
          Re: Working with an array of TreeSet FredK <fred.l.kleinschmidt@gmail.com> - 2016-05-11 14:33 -0700
            Re: Working with an array of TreeSet Lew <lewbloch@gmail.com> - 2016-05-11 14:45 -0700

csiph-web