I am new to this forum, thanks for providing the platform! I have been starting to study Java and ran into a line of code from an example out of a book I could not make sense of, maybe somebody has an idea.
Why did they specify a private Constructor which is empty? They did it both for the outer class and also for the inner.
I think the example want to demonstrate the relation between the Outer and Inner classes - in my code, i can create an instance to the outer class from the inner class (line 8), and vice-verse (line 18), even the constructor are private and cannot be accessed from outside.