PRO192_-_PE_-_SP_2025_-_Block_2_3467.webp
R

PRO192_-_PE_-_SP_2025_-_Block_2_3467.webp

☑Kizspy.me
import java.util.List;
public interface IEmployee Management {
}
public int f1(List<Employee> Ist);
public void f2(List<Employee> Ist);
public void f3(List<Employee>Ist);
Write a class named Employee Management, which implements the interface IEmployee Management.
The class EmployeeManagement implements methods f1, f2, f3 in IEmployeeManagement as below
(you can add other functions in EmployeeManagement class):

f1: Total salary of elements with name begins with "Ng" (case-sensitive).
⚫f2: Find all Managers have lowset salary and adding "X" at beginning of their name
• f3: Suppose the list contains at least 7 elements. Sort the first 3 elements descendingly and last 3
elements ascendingly by salary.
When running, the program will add some data to the list. Sample output might look something like:
Add how many Manager elements:0
Zoom
1. Test f1 (1 mark)
+ 89%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
rising_sun
Ngày thêm
Lượt xem
6,240
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom