doubles are numbers

This commit is contained in:
Ashish Bailkeri
2023-02-26 00:09:21 -05:00
parent f6a313ebf3
commit c07ce52413

View File

@@ -10,8 +10,8 @@ class TimeRange {
} }
class PriceRange { class PriceRange {
int low = 0; double low = 0;
int high = 0; double high = 0;
PriceRange(this.low, this.high); PriceRange(this.low, this.high);
} }
@@ -32,7 +32,7 @@ class Seller implements Comparable<Seller> {
@override @override
int compareTo(Seller other) { int compareTo(Seller other) {
return this.name.compareTo(other.name); return name.compareTo(other.name);
} }
} }