package private static member class vs. package private class
- by Helper Method
I was writing two implementations of a linked list for an assignment, a doubly linked list and a circular doubly linked list. Now as the class representing a Link within the linked list is the same in both implementations, I want to use it in both.
Now I wonder which approach would be better:
Implement the Link class as a package private static…