oop - the contents of arraylist are printed using println. I want a similar functionality for my created objects without using toString() function in java - Stack Overflow
Learn Java by Examples: How to print collections in the Collections Framework on the console in Java ?.
LinkedList add() Method in Java With Examples - GeeksforGeeks