摘要:
题目描述 在一个有序数组中,找>=某个数最左侧的位置 题解 用二分法的思想 public class BSLeft { public int findLeft(int[] arr,int x) { //数组为空或数组长度为0,返回-1 if (arr == null || arr.length == 阅读全文
摘要:
静态方法不能被重写,非静态方法才能被子类重写。 public class Person { public static void f1(){ System.out.println("person static f1"); } public void f2(){ System.out.println( 阅读全文