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


Groups > comp.lang.java.help > #2894 > unrolled thread

Java Basic Question: Enumeration & Vector

Started byisuy1 <isuy@socal.rr.com>
First post2014-02-10 07:45 -0600
Last post2014-02-17 09:41 +0000
Articles 13 — 9 participants

Back to article view | Back to comp.lang.java.help


Contents

  Java Basic Question: Enumeration & Vector isuy1 <isuy@socal.rr.com> - 2014-02-10 07:45 -0600
    Re: Java Basic Question: Enumeration & Vector Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-02-10 09:21 -0500
    Re: Java Basic Question: Enumeration & Vector Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-02-10 16:38 +0200
      Re: Java Basic Question: Enumeration & Vector Lew <lewbloch@gmail.com> - 2014-02-10 12:24 -0800
        Re: Java Basic Question: Enumeration & Vector Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-02-10 23:45 +0200
          Re: Java Basic Question: Enumeration & Vector Lew <lewbloch@gmail.com> - 2014-02-10 17:51 -0800
    Re: Java Basic Question: Enumeration & Vector rossum <rossum48@coldmail.com> - 2014-02-10 19:12 +0000
    Re: Java Basic Question: Enumeration & Vector Roedy Green <see_website@mindprod.com.invalid> - 2014-02-10 12:45 -0800
    Re: Java Basic Question: Enumeration & Vector isuy <isuy@socal.rr.com> - 2014-02-15 06:06 +0000
      Re: Java Basic Question: Enumeration & Vector Joerg Meier <joergmmeier@arcor.de> - 2014-02-15 13:23 +0100
        Re: Java Basic Question: Enumeration & Vector Roedy Green <see_website@mindprod.com.invalid> - 2014-02-15 10:09 -0800
          Re: Java Basic Question: Enumeration & Vector Joerg Meier <joergmmeier@arcor.de> - 2014-02-16 11:32 +0100
            Re: Java Basic Question: Enumeration & Vector Nigel Wade <nmw@ion.le.ac.uk> - 2014-02-17 09:41 +0000

#2894 — Java Basic Question: Enumeration & Vector

Fromisuy1 <isuy@socal.rr.com>
Date2014-02-10 07:45 -0600
SubjectJava Basic Question: Enumeration & Vector
Message-ID<ANydnZZSbcxpSmXPnZ2dnUVZ_qGdnZ2d@giganews.com>
Hi, I would like some explanation please.

Suppose I have Vector v = new Vector();

[toc] | [next] | [standalone]


#2895

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2014-02-10 09:21 -0500
Message-ID<ldan9b$f21$1@dont-email.me>
In reply to#2894
On 2/10/2014 8:45 AM, isuy1 wrote:
> Hi, I would like some explanation please.
>
> Suppose I have Vector v = new Vector();

     All right: I'm supposing it.  What next?

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

[toc] | [prev] | [next] | [standalone]


#2896

FromJukka Lahtinen <jtfjdehf@hotmail.com.invalid>
Date2014-02-10 16:38 +0200
Message-ID<lvk3d3docu.fsf@saunalahti.fi>
In reply to#2894
isuy1 <isuy@socal.rr.com> writes:

> Hi, I would like some explanation please.
> Suppose I have Vector v = new Vector();

You could probably replace it with
List v = new LinkedList();
or 
List v = new ArrayList();

-- 
Jukka Lahtinen

[toc] | [prev] | [next] | [standalone]


#2898

FromLew <lewbloch@gmail.com>
Date2014-02-10 12:24 -0800
Message-ID<7164706e-6262-4a32-9524-e951b7d84d6a@googlegroups.com>
In reply to#2896
Jukka Lahtinen wrote:
> isuy1 writes:
>> Hi, I would like some explanation please.
>> Suppose I have Vector v = new Vector();

Don't use raw types. 'Vector' is obsolete; use 'ArrayList' along the lines of what Jukka suggested,
but for the omission of generic arguments.

> You could probably replace it with
> List v = new LinkedList();

Except don't use raw types.

> or 
> List v = new ArrayList();

It is a serious pedagogical flaw to present raw types.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#2900

FromJukka Lahtinen <jtfjdehf@hotmail.com.invalid>
Date2014-02-10 23:45 +0200
Message-ID<lvd2iutzfj.fsf@saunalahti.fi>
In reply to#2898
Lew <lewbloch@gmail.com> writes:
> Jukka Lahtinen wrote:
>> isuy1 writes:

>>> Suppose I have Vector v = new Vector();

>> You could probably replace it with
>> List v = new LinkedList();

> Except don't use raw types.

Right. The OP just didn't show what type the list is to be used for.
Of course, for lack of better knowledge, they could use
List<Object> v = new LinkedList<Object>();

-- 
Jukka Lahtinen

[toc] | [prev] | [next] | [standalone]


#2901

FromLew <lewbloch@gmail.com>
Date2014-02-10 17:51 -0800
Message-ID<6ce19f4c-cf54-4841-94c1-0b1874b100c4@googlegroups.com>
In reply to#2900
Jukka Lahtinen wrote:
> Lew  writes:
> > Jukka Lahtinen wrote:
> >> isuy1 writes:
> >>> Suppose I have Vector v = new Vector();
> 
> >> You could probably replace it with
> >> List v = new LinkedList();
> 
> > Except don't use raw types.
> 
> Right. The OP just didn't show what type the list is to be used for.
> Of course, for lack of better knowledge, they could use
> List<Object> v = new LinkedList<Object>();

Or 
  List<?> v = new LinkedList<>();

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#2897

Fromrossum <rossum48@coldmail.com>
Date2014-02-10 19:12 +0000
Message-ID<929if9dkemikhoa6fujpo6782likjpu61b@4ax.com>
In reply to#2894
On Mon, 10 Feb 2014 07:45:24 -0600, isuy1 <isuy@socal.rr.com> wrote:

>Hi, I would like some explanation please.
>
>Suppose I have Vector v = new Vector();
A suggestion.  Compose your whle post offline in your favourite
editor.  Then cut and paste the whole thing into your news browser.

It looks to me like you only included a part of what you wanted to
ask.

rossum

[toc] | [prev] | [next] | [standalone]


#2899

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-02-10 12:45 -0800
Message-ID<gdeif9tnnkp7m8ltm59g34p51ml0ajotqs@4ax.com>
In reply to#2894
On Mon, 10 Feb 2014 07:45:24 -0600, isuy1 <isuy@socal.rr.com> wrote,
quoted or indirectly quoted someone who said :

>Hi, I would like some explanation please.
>
>Suppose I have Vector v = new Vector();
 See http://mindprod.com/jgloss/arraylist.html
and
http://mindprod.com/jgloss/generics.html

That will show you sample code for all the usual operations.  Vectors
are rarely used any more.  Iterators have largely replaced
Enumerators.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Because a thing seems difficult for you, do not think it 
impossible for anyone to accomplish.
~ Marcus Aurelius 121-04-26 180-03-17 

[toc] | [prev] | [next] | [standalone]


#2903

Fromisuy <isuy@socal.rr.com>
Date2014-02-15 06:06 +0000
Message-ID<ldn04b$ach$1@dont-email.me>
In reply to#2894
On 02/10/2014 01:45 PM, isuy1 wrote:
> Hi, I would like some explanation please.
>
> Suppose I have Vector v = new Vector();
>

Isuy1, what kind of joke is this? You are using my email address.


X-Received: by 10.236.86.77 with SMTP id v53mr9612434yhe.41.1392039924761;
         Mon, 10 Feb 2014 05:45:24 -0800 (PST)
MIME-Version: 1.0
Path: 
eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!k15no15826808qaq.0!news-out.google.com!s3ni13859qas.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 10 Feb 2014 07:45:24 -0600
From: isuy1 <isuy@socal.rr.com>
Subject: Java Basic Question: Enumeration & Vector
Newsgroups: comp.lang.java.help
X-UserIpAddress:
X-InternalId: e0aef9eb-1ad5-4e6d-9ac1-feab7555a778
Message-ID: <ANydnZZSbcxpSmXPnZ2dnUVZ_qGdnZ2d@giganews.com>
Date: Mon, 10 Feb 2014 07:45:24 -0600
Lines: 3
X-Usenet-Provider: http://www.giganews.com
X-Trace: 
sv3-CRvDGogXLHLELLFs+lLsW11JxLhBd9mCXStNRxGFM2adgEyA6TKnCS0il8sDJ9nwkKBbF3Uzo5Zp5q7!7zfXEBz8ok5IabfVqL0JWR5gapNRYQRLrCI3oBbB0WqlmiRQXZA73WJnhqp4VyGZ8WwyvfXHMTdk!eg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your 
complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1011
Xref: news.eternal-september.org comp.lang.java.help:7847

[toc] | [prev] | [next] | [standalone]


#2905

FromJoerg Meier <joergmmeier@arcor.de>
Date2014-02-15 13:23 +0100
Message-ID<1tom4eswn1ine.1s83sf7jzw48x.dlg@40tude.net>
In reply to#2903
On Sat, 15 Feb 2014 06:06:01 +0000, isuy wrote:

> On 02/10/2014 01:45 PM, isuy1 wrote:
>> Hi, I would like some explanation please.

>> Suppose I have Vector v = new Vector();
> Isuy1, what kind of joke is this? You are using my email address.

The problem appears to be on your end. Over here, it shows OP's From as:

From: sravtclave@gmail.com

Liebe Gruesse,
		Joerg

-- 
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.

[toc] | [prev] | [next] | [standalone]


#2908

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-02-15 10:09 -0800
Message-ID<aabvf99j4nquc4ch2n5891c0pk64fqpudp@4ax.com>
In reply to#2905
On Sat, 15 Feb 2014 13:23:06 +0100, Joerg Meier <joergmmeier@arcor.de>
wrote, quoted or indirectly quoted someone who said :

>The problem appears to be on your end. Over here, it shows OP's From as:
>
>From: sravtclave@gmail.com

It shows as isguy here in Victoria BC.  


Here is what the header looked like:

X-Received: by 10.236.86.77 with SMTP id
v53mr9612434yhe.41.1392039924761;
        Mon, 10 Feb 2014 05:45:24 -0800 (PST)
MIME-Version: 1.0
Path: aioe.org!news.glorb.com!k15no15826808qaq.0!
news-out.google.com!s3ni13859qas.0!nntp.google.com!Xl.tags.giganews.com!
border1.nntp.dca.giganews.com!nntp.giganews.com!
local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 10 Feb 2014 07:45:24 -0600
From: isuy1 <isuy@socal.rr.com>
Subject: Java Basic Question: Enumeration & Vector
Newsgroups: comp.lang.java.help
X-UserIpAddress: 
X-InternalId: e0aef9eb-1ad5-4e6d-9ac1-feab7555a778
Message-ID: <ANydnZZSbcxpSmXPnZ2dnUVZ_qGdnZ2d@giganews.com>
Date: Mon, 10 Feb 2014 07:45:24 -0600
Lines: 3
X-Usenet-Provider: http://www.giganews.com
X-Trace:
sv3-CRvDGogXLHLELLFs+lLsW11JxLhBd9mCXStNRxGFM2adgEyA6TKnCS0il8sDJ9nwkKBbF3Uzo5Zp5q7!
7zfXEBz8ok5IabfVqL0JWR5gapNRYQRLrCI3oBbB0WqlmiRQXZA73WJnhqp4VyGZ8WwyvfXHMTdk!eg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1011
Xref: aioe.org comp.lang.java.help:7761
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The future has already happened, it just isn’t evenly distributed.
~ William Gibson (born: 1948-03-17 age: 65)

[toc] | [prev] | [next] | [standalone]


#2909

FromJoerg Meier <joergmmeier@arcor.de>
Date2014-02-16 11:32 +0100
Message-ID<yl88htcqgn9k.old46qly79uv.dlg@40tude.net>
In reply to#2908
On Sat, 15 Feb 2014 10:09:52 -0800, Roedy Green wrote:

> On Sat, 15 Feb 2014 13:23:06 +0100, Joerg Meier <joergmmeier@arcor.de>
> wrote, quoted or indirectly quoted someone who said :
>>The problem appears to be on your end. Over here, it shows OP's From as:

>>From: sravtclave@gmail.com
> It shows as isguy here in Victoria BC.  

> Here is what the header looked like:

> From: isuy1 <isuy@socal.rr.com>

It seems to have changed - it shows that here now as well. At first I
thought maybe I just looked wrong the other day, but I can't find the email
I copied and pasted anywhere in the original post anymore.

Liebe Gruesse,
		Joerg

-- 
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.

[toc] | [prev] | [next] | [standalone]


#2910

FromNigel Wade <nmw@ion.le.ac.uk>
Date2014-02-17 09:41 +0000
Message-ID<bme3q6Fjj4lU1@mid.individual.net>
In reply to#2909
On 16/02/14 10:32, Joerg Meier wrote:
> On Sat, 15 Feb 2014 10:09:52 -0800, Roedy Green wrote:
>
>> On Sat, 15 Feb 2014 13:23:06 +0100, Joerg Meier <joergmmeier@arcor.de>
>> wrote, quoted or indirectly quoted someone who said :
>>> The problem appears to be on your end. Over here, it shows OP's From as:
>
>>> From: sravtclave@gmail.com
>> It shows as isguy here in Victoria BC.
>
>> Here is what the header looked like:
>
>> From: isuy1 <isuy@socal.rr.com>
>
> It seems to have changed - it shows that here now as well. At first I
> thought maybe I just looked wrong the other day, but I can't find the email
> I copied and pasted anywhere in the original post anymore.
>

Perhaps it was the next [spam] message, which in my client shows as being from that address.

-- 
Nigel Wade

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.help


csiph-web