edu.pdx.cs399J.core
Class CerealComparator
java.lang.Object
edu.pdx.cs399J.core.CerealComparator
- All Implemented Interfaces:
- Comparator<Cereal>
public class CerealComparator
- extends Object
- implements Comparator<Cereal>
Compares two boxes of ceral by their price
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CerealComparator
public CerealComparator()
compare
public int compare(Cereal o1,
Cereal o2)
- Specified by:
compare in interface Comparator<Cereal>
main
public static void main(String[] args)
Copyright © 2000-2009 Portland State University. All Rights Reserved.