I am tring to expand on a tutorial I was following Java Project Step by step Build An Email Administration Application (https://www.youtube.com/watch?v=U3Ibvu0htNs&t=386s). I am trying to use getters and setters to allow the encapsulation to do its job, and eventually allow a user to enter their own name instead of having a preset name in the variable. I know the
Tag: encapsulation
Why does LinkedList not expose its Node class?
If I develop the linked list from scratch, I can store a pointer to a Node object inside my business entity class and achieve constant O(1) remove and insertAfter operations. In the java standard library implementation, they are O(n) which can differ tremendously when processing large data sets. Why don’t they just made the Node class public and encapsulated some