Article View: alt.pl.comp.lang.csharp
Article #426Re: Dane w ArrayList
From: Marthy
Date: Mon, 19 Jan 2004 11:19
Date: Mon, 19 Jan 2004 11:19
18 lines
1429 bytes
1429 bytes
> > Do tablicy mam wprowadzi� pewne dane, np. ci�g cyfr: 123456789. > Jak je zapisa� w tej tablicy, aby ka�da cyfra by�a wpisana pod oddzielnym > indeksem. Chyba musze skorzysta� z ArrayList, no bo przecie� nie wiem na > pocz�tku ile kto� wprowadzi tych cyfr. Cyfry musz� by� wprowadzone "jendym > ci�giem". > Witam No to wprowadzaj je w petli while. Skorzystaj z ArrayList. Nowy element wstawiasz metoda Add(). np. ArrayList ar = new ArrayLIst(); while (...) ar.Add( wartosc );
Technical Details
Message-ID:
<bugejg$8cn$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<bug0mm$cql$1@atlantis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Marthy" <mar...@poczta.onet.pl> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: Dane w ArrayList Date: Mon, 19 Jan 2004 12:19:56 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 20 Message-ID: <bugejg$8cn$1@nemesis.news.tpi.pl> References: <bug0mm$cql$1@atlantis.news.tpi.pl> NNTP-Posting-Host: 195.116.249.130 X-Trace: nemesis.news.tpi.pl 1074511281 8599 195.116.249.130 (19 Jan 2004 11:21:21 GMT) X-Complaints-To: use...@tpi.pl NNTP-Posting-Date: Mon, 19 Jan 2004 11:21:21 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit