Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
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.
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.
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.