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


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

Re: ArrayList vs HashMap

From Roedy Green <inquiry@mindprod.com>
Newsgroups comp.lang.java.programmer
Subject Re: ArrayList vs HashMap
Date 2016-08-30 16:34 -0700
Organization Aioe.org NNTP Server
Message-ID <2v5csb5sbcsmc8mhl568kddioqa8cntdng@4ax.com> (permalink)
References <ps7urbhve2c7lfn0f3nop1p0hkgjsgdaid@4ax.com> <q08urbp60906u39su1o8feo0i3unlcednp@4ax.com> <136a0364-6810-45b3-9dc0-7a0ac235fef5@googlegroups.com>

Show all headers | View raw


On Thu, 25 Aug 2016 10:06:37 -0700 (PDT), Eric Douglas
<e.d.programmer@gmail.com> wrote:

>Sizes?  Can you be more specific?  Generally these classes are for very different purpose.
  An ArrayList is just a list of items.  A HashSet is a list of unique
items.  A HashMap is a list of unique items with correlated values...

 Lets say the only operation you will do is .contains to see if a
element is in the set.

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


Thread

ArrayList vs HashMap Roedy Green <inquiry@mindprod.com> - 2016-08-25 09:42 -0700
  Re: ArrayList vs HashMap Roedy Green <inquiry@mindprod.com> - 2016-08-25 09:43 -0700
    Re: ArrayList vs HashMap Eric Douglas <e.d.programmer@gmail.com> - 2016-08-25 10:06 -0700
      Re: ArrayList vs HashMap Roedy Green <inquiry@mindprod.com> - 2016-08-30 16:34 -0700
        Re: ArrayList vs HashMap Andreas Leitgeb <avl@logic.at> - 2016-08-31 12:55 +0000
          Re: ArrayList vs HashMap Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-08-31 13:05 -0400
            Re: ArrayList vs HashMap Andreas Leitgeb <avl@logic.at> - 2016-08-31 17:34 +0000
  Re: ArrayList vs HashMap j4n bur53 <janburse@fastmail.fm> - 2016-08-31 09:15 +0200

csiph-web