void addLast(String xPlace, int xWeight, int xColor). Note: the value of xWeight must be bigger than 0.
void f1() - Do not edit this method. Your task is to complete the addLast(...) method above only.Output in the file f1.txt must be the following:
(G,7,-1) (H,6,7) (C,4,5) (X,8,-9) (1,5,8)
void f2() - Suppose the list contains at least three nodes, delete the first three nodes. Output in the file f2.txt must be the following:
(D,4,7) (L,1,-5) (E,9,2) (0,7,6)
(Q,7,6)
Zoom
+ 80%
Close