摘要:
首先创建一个properties配置文件:dbinfo.properties 供测试用。 怎样获取age属性值?我们可以使用两种方法: ①使用反射的类加载器读取配置文件; ②使用工具类ResourceBundle ①反射的类加载器 public class ClassLoaderproper { p 阅读全文
posted @ 2017-05-11 20:30
波光闪烁
阅读(422)
评论(0)
推荐(0)
摘要:
将数组里相邻的数两两比较,按照升序或者降序排列的方式我们称为冒泡排序。 升序排列为例: //冒泡排序public class Sort { public static void main(String[] args) { int[] arr={6,5,7,1,4,3}; //先设定一个数组 Syst 阅读全文
posted @ 2017-05-11 20:29
波光闪烁
阅读(231)
评论(0)
推荐(0)

浙公网安备 33010602011771号