☑Kizspy.me
5 of 6
Paper No: 1
OrderList
+addOrder(Order order): void
+getSaleByOrderId(orderId: String): double
+getOrdersBySale(value: double):
List<Order>
Where
•
addOrder(Order order): void-add a new
order to the OrderList

getSaleByOrderId(orderld:
•
String):
double return the sale of the order by
orderld. If orderld does not exist then
return 0.
Note: String comparison is case-
insensitive
getOrdersBySale(value: double): -
List Order>-return a list of orders
whose sales are greater than or equal to
value. If not found matching data,
return null
Zoom
Hints: to declare the OrderList class, you can use the following statement:
public class OrderList extends ArrayList<Order>{
}
11....
+ 100%
Close