Article View: borland.public.jbuilder.java.language
Article #627ArrayList
From: Petar Popara
Date: Mon, 04 Apr 2005 11:58
Date: Mon, 04 Apr 2005 11:58
8 lines
1051 bytes
1051 bytes
Why this doesn't work:
ArrayList l = new ArrayList();
l.add(new String("aaa")));
String[] s = l.toArray();
JavaClassCast exception I got. What should I do?
Technical Details
Message-ID:
<42512ba2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,b5d68c9c70412a4d,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Petar Popara" <none> Newsgroups: borland.public.jbuilder.java.language Subject: ArrayList Date: Mon, 4 Apr 2005 13:58:57 +0200 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 193.138.1.206 Message-ID: <42512ba2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112615842 193.138.1.206 (4 Apr 2005 04:57:22 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail