PRO192_-_PE02_-_SP_2025_3836.webp
Q

PRO192_-_PE02_-_SP_2025_3836.webp

☑Kizspy.me
OrderList
Where
+addOrder(Order order): void
+getSaleByOrderId(orderId: String): double
+getOrdersBySale(value: double):
List<Order>

addOrder(Order order): void-add a new
order to the OrderList
⚫ getSaleByOrderld(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
Hints: to declare the OrderList class, you can use the following statement:
public class OrderList extends ArrayList<Order>{
}
11....
The program output might look something like this (using the OrderList class):
The Orders have been added:
The Orders have been added:
The Orders have been added:
Zoom
001 HANG 100.00
+ 100%
Mai Linh anh an
001 HANC 100.00
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Quốc Khánh1
Ngày thêm
Lượt xem
5,571
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom