-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