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