Article View: cn.bbs.comp.lang.java
Article #19727Re: ���ʹjava���н���ͣס��
From: ddkiller
Date: Tue, 30 Dec 2003 07:50
Date: Tue, 30 Dec 2003 07:50
21 lines
1795 bytes
1795 bytes
Thinking in Java����˵�ˣ�
Some programming environments will flash programs up on the screen and close
them before you've had a chance to see the results. You can put in the foll
owing bit of code at the end of main( ) to pause the output:
try {
System.in.read();
} catch(Exception e) {}
This will pause the output until you press ��Enter�� (or any other key).
This code involves concepts that will not be introduced until much later in
the book, so you won��t understand it until then, but it will do the trick.
�� �� bigchin. �Ĵ������ᵽ: ��
: ����һ����������鿴��õ�java�����ǻ�û����������н��Ĵ���һ����û
: �ˡ�������ʲô������ʹ����ͣס�����ҿ������������ϸ��֪��
--
[m[1;33m�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: ddkiller][m
Technical Details
Message-ID:
<4A4CAZ$A0Q@freecity.dhs.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB X-Google-Thread: f6cb0,f67d5c337b5a87d3 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-29 23:48:59 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity From: ddkiller.bbs@freecity.dhs.org (ddkiller) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ���ʹjava���н���ͣס�� Date: 30 Dec 2003 07:50:51 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <4A4CAZ$A0Q@freecity.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1072770563.A