Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe
Tagged

compare()

A collection of 1 post

Comparable

Comparator를 사용하여 비교하기.

이 전글에서 보았던 Arrays.sort()와 Collection.sort() 메소드에는 공통적으로 Comparator를 추가적으로 인자로 받아들이는 메소드들이 있습니다. public static <T> void sort(T[] a, Comparator<? super T> c)  <- Arrays 클래스에 있는 메소드 public static <T> void sort(List<T> list,

  • 백기선
백기선 Nov 2, 2006 • 3 min read
Whiteship © 2022
Powered by Ghost