摘要:
二分查找算法 public class Demo { public static void main(String[] args){ int[] num = {1,2,3,4}; int index = 3; int start = 0; int end = num.length-1; boolea 阅读全文
摘要:
插入排序算法 public class Demo { public static void main(String[] args){ int[] num = {6,4,6,3,2,1,4,2,67,8,34,9}; for(int i=0;i<num.length-1;i++){ int temp 阅读全文
摘要:
String在内存中的分析: public class Demo { public static void main(String[] args){ String a = new String("xx"); //1、首先解释器在堆中的常量池中查找是否有xx变量,没有则创建。有就不在常量池中创建 // 阅读全文