摘要: import java.util.Arrays;class TestSortUtil { public static void main(String[] args) { Student[] stu={ new Student("凯文",15... 阅读全文
posted @ 2015-07-03 17:16 凤栖梧桐镇 阅读(279) 评论(0) 推荐(0)
摘要: 当两个基本数据类型数据(以int类型为例),要写作一个方法中用来调用。例如:要写一个swap方法来交换两个整型变量的值。 如果这样写: 1 public static void main(String[] args) { 2 int a=2,b=3; 3 ... 阅读全文
posted @ 2015-07-03 16:30 凤栖梧桐镇 阅读(931) 评论(0) 推荐(0)