PRO192_-_PE_-_SP_2024_-_Block_5_1920.webp
E

PRO192_-_PE_-_SP_2024_-_Block_5_1920.webp

-status:int
getStatus():int- return status.
setName(name:String): void update name.
+User (name: String, status:int)
+getName():String
setStatus(status:int): void - update status.
+getStatus():int
+setName(name: String):void
+setStatus(status:int):void
The interface IUser below is already compiled and given in byte code format, thus you can use it without creating IUser.java file.
import java.util.List;
public interface IUser {
public int f1(List<User> t);
public void f2(List<User> t);
public void f3(List<User> t);
}
Write a class MyUser, which implements the interface IUser. The class MyUser implements methods f1,f2 and f3 in IUser as below (you can add other functions in MyUser class):
Zoom
f1: Calculate the maximum of status of the elements that the second character of name is a

+ 90%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRO192_-_PE_-_SP_2024_-_Block_5_1920.webp
File size
133.1 KB
Dimensions
1340px x 792px

Share this media

Back
Bên trên Bottom