java-api-Comparator接口

Interface Comparator<T>{

public int compare(T t1,T t2){

  return (true 则交换,false则不交换);

}

}

posted @ 2022-03-28 09:57  `安安安安安  阅读(21)  评论(0)    收藏  举报