Article View: cn.bbs.comp.lang.java
Article #18832��һ������
From: ��
Date: Mon, 19 Jan 2004 03:48
Date: Mon, 19 Jan 2004 03:48
22 lines
1489 bytes
1489 bytes
����һ������,public int addem(int operand1,int operand2)
{
........code....
}
�Dz��Ǵ����е����һ�������return���ѽ?
�ҵ���˼����˵������Ҫreturn operand1+operand2,Ȼ�������������һ
��ô��ֻ������д
public int addem(int operand1,int operand2)
{
return (operand1--)+(operand2--);
}
��������д
public int addem(int operand1,int operand2)
{
return operand1+operand2;
operand1--;
operand2--;
}
--
[m[1;36m�� ��Դ:��Ʈ��ˮ�Ƽ� freecity.cnzju.net��[FROM: Shinjia][m
Technical Details
Message-ID:
<4AJZeY$AWO@freecity.cnzju.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!news2.euro.net!newshosting.com!nx02.iad01.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!news.bylinux.net!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,f880fcc9e159f5c8,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2004-01-18 19:48:22 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.wirehub.nl!news2.euro.net!newshosting.com!nx02.iad01.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!news.bylinux.net!news.ccie.net.cn!Freecity From: Shinjia.bbs@freecity.cnzju.net (��) Newsgroups: cn.bbs.comp.lang.java Subject: ��һ������ Date: 19 Jan 2004 03:48:52 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <4AJZeY$AWO@freecity.cnzju.net> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1074483874.A Lines: 22