Instantiating inner class
I think you want to declare the HashPerson class as static. Otherwise it can only be instantiated in the context of the containing class, either in a method of the containing class or using code like this: ContainingClass container = new ContainingClass(); HashPerson william = container.new HashPerson(“willy”); Actually, my rule-of-thumb is to make any nested … Read more