🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ����һ������

#19811
From: ������
Date: Mon, 29 Dec 2003 06:54
20 lines
1566 bytes
you can define an interface and create many implementations
and put the string - hangler pairs into a hashmap
�� �� qiumi (�Ұ�����) �Ĵ������ᵽ: ��
: java����Ҫʵ������switch case���Ĺ���Ӧ����ôд��
: switch(A)
: {
: case "a":  ....
: case "b":  ....
: case "c":  ....
: default:
: }
: ����A��һ��String���͵ı�����
: >>  .................<����ʡ��>............


--
 ���� ��Ĭ ���� ��� �ڼ� ���� �Ͽ� ���� ���� ��� �侲 ���

�� �����޸�:��windprayer � Dec 29 14:54:55 �޸ı������ݡ�[FROM: 10.11.71.253]
�� ��Դ:��Ʈ��ˮ�Ƽ� Freecity.dhs.org��[FROM: 10.11.71.253]
Technical Details
Message-ID: <4A3LBI$AGO@Freecity.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,f02a20a2fa5d17dd
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-28 22:49:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.ccie.net.cn!Freecity
From: windprayer.bbs@Freecity.dhs.org (������)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����һ������
Date: 29 Dec 2003 06:54:55 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <4A3LBI$AGO@Freecity.dhs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1072680738.A