The list before running f1:
(A,6) (B,9) (C,2) (F,9) (E,2) (D,9) (G,2) (H,5)
(AB23,8) (B1,2) (C12,6) (D1,7) (EF34,6)
OUTPUT:
7
Add how many elements: 0
Enter TC(1-fl;2-f2;3-f3): 3
The list before running f3:
(H,19) (G,56) (E,8) (F,47) (E,56) (C,65) (B,8) (A,83)
OUTPUT:
(A,83) (G,56) (E,8) (F,47) (E,56) (C,65) (B,8) (A,83)
Question 4:
(2 marks) The interface IString below is already compiled and given in byte code format, thus you can use it without creating IString.java file.
public interface IString {
public int f1(String str);
public String f2(String str);
}
Zoom
+ 90%
Close