🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2060

String[] casting of other arrays

#2060
From: Yonatan Taub
Date: Sun, 03 Jun 2001 18:38
6 lines
1042 bytes
Is it possible to do something like the following?

String[] strArray = (String[])objArr;

Offcourse this doesn't work, but is there a short and ellegant way to
implement such an idea (without iteration!)?
Technical Details
Message-ID: <3b1a7545_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!nntp.cifnet.net!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4cd3fd58a543ecae,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-06-03 10:41:09 PST
From: "Yonatan Taub" <yonatanta@bashan.co.il>
Newsgroups: borland.public.jbuilder.java.api
Subject: String[] casting of other arrays
Date: Sun, 3 Jun 2001 20:38:06 +0200
Lines: 8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 212.179.22.2
Message-ID: <3b1a7545_1@dnews>
X-Trace: dnews 991589701 212.179.22.2 (3 Jun 2001 10:35:01 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!nntp.cifnet.net!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews