What @toto2 said plus
I would change the
print
method. OverridetoString
method.Do not put
System.out.println
in an API class. You will be reusing yourLinkedList
class in future in GUI or Web app. Then unwanted SOPs will hamper your code.
What @toto2 said plus
I would change the print
method. Override toString
method.
Do not put System.out.println
in an API class. You will be reusing your LinkedList
class in future in GUI or Web app. Then unwanted SOPs will hamper your code.