I\'m trying to create a method in java which compares some products. I need to compare them by unit of measure and then by quantity, but I don\'t know how. I need to use obj