Have a read through this trail
Controlling Access to Members of a Class (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
This should give you an insite into what you are...
Type: Posts; User: Freaky Chris
Have a read through this trail
Controlling Access to Members of a Class (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
This should give you an insite into what you are...
data is a private member of the class, so you cannot access it from outside of the class. You cannot use monthNames.data because data is declared as private, so it is hidden from the context.
...