about summary refs log tree commit diff
path: root/usth/ICT2.2/midterm/src/Compare.java
blob: e6bda9031ec79da477f7681bf47f21cf5b73d9ac (plain) (blame)
1
2
3
4
5
6
7
8
9
import java.util.Comparator;

public class Compare<T extends Comparable<? super T>> implements Comparator<T>
{
  public int compare(T a, T b)
  {
    return a.compareTo(b);
  }
}