🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: �Դ�ֵ�ʹ�����

#12266
From: The One
Date: Mon, 02 Aug 2004 09:57
25 lines
1653 bytes


���
�ҵ�swap�Ǹ�ģ��
����������
����swap��Ȼ���� �Ǻ�
�� �� nue.bbs@bbs.sjtu.edu.cn (NUE) �Ĵ������ᵽ: ��
: java�dz���Ч�����⿼�Ƕ��ȡref�IJ��ԡ�
: ����һ��object�ĸ�������ԶԶ���ڴ���һ��ָ��Ŀ���
: �����ֲ�������ָ������ı��ڴ�ı׶ˣ����Ƕ������ָ���Dz��������ƶ��ģ����
: ����һ��������ס�ı�ʾ��
: ������ߵ�swap�����Ӳ�ȷ�С���ʵ������swap�ǿ��Խ��еģ�
: swap(object a, object b) {
:     object temp = new object();
:     temp.i = a.i;
:     a.i = b.i;
:     b.i = temp.i;
: ...........................

--

�ⲻ��ǩ���Ҳ�Ҫǩ��

�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 162.105.184.3]
Technical Details
Message-ID: <4DT3P8$A0S@bbs.pku.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,95dc787ce83723d
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU
From: chinux@bbs.pku.edu.cn (The One)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: �Դ�ֵ�ʹ�����
Date: 02 Aug 2004 09:57:02 GMT
Organization: ����δ��վ
Message-ID: <4DT3P8$A0S@bbs.pku.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1091440568.A
Lines: 25