- 博客(2)
- 收藏
- 关注
原创 数组排序,查找方法。(学习笔记)
import java.util.*; public class ArrayDemo_2 { public static void main(String[] args) { int[] arr = { 16,96,56,76 }; //使用sort方法 /* Arrays.sort(arr); PrintArray(arr);//在实际开发中使用该方法 //选择排序测
2017-03-17 20:26:37
148
原创 java交换两变量的值的方法总结
public class SwapTwoNumbers { public static void main(String[] args) { int x=10; int y=20; //借助第三个变量交换两个变量 System.out.println("交换前x="+x+"y="+y); int temp; temp=x; x=y; y=temp; System.out.pr
2017-03-07 19:58:34
204
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人