摘要:
1. Comparator 和 Comparable 相同的地方 他们都是java的一个接口, 并且是用来对自定义的class比较大小的。 什么是自定义class: 如 public class Person{ String name; int age }. 当我们有这么一个personList,里 阅读全文
摘要:
1 public class Solution { 2 public int strStr(String haystack, String needle) { 3 int big = haystack.length(); 4 int sub = needle.length(); 5 if(big== 阅读全文