as shown in the figure
there is an error at 32 line that says
Node<T>(Object)
is not defined because clone()
returns an Object data Type
I tried to make another constructor that takes an Object data type then cast it
it removes the first error which lead me to another error which says
the clone() method is not visible
however, i write this line "T extends Cloneable
"
any solutions :(