🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #18763

Re: [tij]����һ������

#18763
From: Java Enthusiast
Date: Wed, 04 Feb 2004 06:22
24 lines
2319 bytes
����printhamster����

����������Ƕλ�����˼����Ƕλ�û�н�����˵���Ǹ����⡣�Ƕδ����Ǵ�ģ�
��ûʲô����ɣ�
���߸�����Ǹ��ͱ�ת���Ĵ���ֻ����e.next()�Ǹ�String����String������Ķ���
ʱ������ȷִ�У������������ŵĶ������岻����Ϊ�󲿷��������String��

�� �� abcdefghijkl.bbs@bbs.nankai.edu.cn (star�ı���) �Ĵ������ᵽ: ��
: Although it��s unnecessary, you can be more explicit using a cast, which has
: the effect of calling toString( ):
: ��λ����������printhamster����ض�����˵�Ķ���ǰ���Ǹ�printer.
: ������λ����������һ��:
: In general, however, you��ll want to do something more than call Object 
: methods, so you��ll run up against the type-casting issue again. You must
: assume you��ve gotten an Iterator to a sequence of the particular type you're 
: interested in, and cast the resulting objects to that type (getting a 
: run-time exception if you��re wrong). 
: >>  .................<����ʡ��>............


--
gjyalpha ��˭��������gjyalpha ��

�� ��Դ:��Ʈ��ˮ�Ƽ� freecity.cnzju.net��[FROM: gjyalpha]
Technical Details
Message-ID: <4AWFcl$AOK@freecity.cnzju.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,3e90995f8f94619b
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-02-03 22:27:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: gjyalpha.bbs@freecity.cnzju.net (Java Enthusiast)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [tij]����һ������
Date: 04 Feb 2004 06:22:08 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <4AWFcl$AOK@freecity.cnzju.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1075875407.A