🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3115

Duda sobre crear objetos "distintos" en Java

#3115
From: qxm
Date: Fri, 06 May 2005 21:08
13 lines
1367 bytes
Tengo una duda:

¿Cómo puedo crear ojbetos con distinto nombre en Java?
Se me ocurre usar un ciclo y usar el metodo new, pero el drama está en
que necesito que los objetos se construyan algo así... (con el
contenido de una variable de tipo String, que tenga concatenado un
número)
obj01
obj02
etc.
pero dentro de un ciclo ....

¿Se puede hacer eso?
Technical Details
Message-ID: <1115413703.146063.225340@f14g2000cwb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,c7ed06cee8eff92b,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: qxm@cmet.net
Newsgroups: chile.comp.programacion
Subject: Duda sobre crear objetos "distintos" en Java
Date: 6 May 2005 14:08:23 -0700
Organization: http://groups.google.com
Lines: 14
Message-ID: <1115413703.146063.225340@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: 200.54.196.140
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1115413707 22610 127.0.0.1 (6 May 2005 21:08:27 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 6 May 2005 21:08:27 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=200.54.196.140;
   posting-account=iarvFg0AAABKeR2oR9kFDE3MVzxw57Dv