摘要: public class swap{ public void sswap(int x,int y){ int s; s=x; x=y; y=s; System.out.println("Within sswap: x="+x+" y="+y); } public static void main(String args[]){ int x=10,y=7; System.out.println("x="+x+" y="+y); swap s=new swap(); s.sswap(x,y); System.out.p 阅读全文
posted @ 2014-02-04 19:32 丸子No1 阅读(238) 评论(0) 推荐(0) 编辑