Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Comparator<Product> ordinaPerPrezzo = new Comparator<Product>(){
- public int compare(Product p1, Product p2){
- Double fn1 = p1.getPrintablePrice();
- Double fn2 = p2.getPrintablePrice();
- return fn1.compareTo(fn2);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement