🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ����

#22109
From: �����ơ��������λλ�
Date: Wed, 22 Oct 2003 05:35
30 lines
2494 bytes
������֪,�����Ǻ����

==���ȷʵ�Ƚϵ���Ӧ��ֵ,�����������String������˵�������,��Ϊ
String����IJ�������˲���ģʽ(���ֲ�ʿ��<java��ģʽ>),

�����û����Ļ�,��һ���ַ�����ʱ��,���������ڴ���Ѱ���Ƿ�����ͬ����
����,����,����
�����ַ�����ַ����,Ҳ����˵���symbol������Ҳ����ֵȷʵΪ"+"�Ļ�,symbol=
="+"����true


�� �� henanren (����ů���˸��㣬ʫ�������) �Ĵ������ᵽ: ��
: ��Ȼ�����?����Ƚϵ��������ַ������ֵ��ֻҪsymbol��ָ�򡰣������϶�����
: false���������Ҫ��String��equals����������compareTo�����ԡ�
: ���ﻹ��һ��С���ţ��ѳ���д��ǰ�棬���������жϿ�������д
:     if ( "+".equals( symbol ) ) .....
: ������Ա�����symbol�Ƿ�Ϊnull���жϣ�����RunTime Exception�Ŀ����ԣ����ӳ���
: �Ľ�׳�ԡ�
: �� �� zhhaiya (yaya) �Ĵ������ᵽ: ��
: : ����IJ���Ϊ��Ķ��󣬷���ֵ�ܷ�ҲΪ��Ķ���
: : ��if�������symbol=="+")����String Symbol������


--




�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: PWLAZY]
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.19.13]
Technical Details
Message-ID: <48kD1T$9eK@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsgate.cuhk.edu.hk!news.zixia.net!news.ccie.net.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,d658fd3207f5be68
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-10-28 06:54:52 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsgate.cuhk.edu.hk!news.zixia.net!news.ccie.net.cn!SJTU
From: pwlazy.bbs@bbs.sjtu.edu.cn ( �����ơ��������λλ�)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ����
Date: 22 Oct 2003 05:35:17 GMT
Organization: ��ˮ˼Դ
Message-ID: <48kD1T$9eK@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1066800461.A
Lines: 30