That refers to the private attribute. For most constructors you want to use public.
Type: Posts; User: Norm
That refers to the private attribute. For most constructors you want to use public.
Do you read and understand English? What don't you understand about that error message? Compare its recommendation with what you have coded.
Please edit the code and fix its formatting and...
Threads merged.
Please copy the full text of the error message and paste it here. It has important info about the error.
Also please edit your post and format the code. Nested statements...
A good place to read up on java is the tutorial.
Here are links to two sections you need to study:
Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language >...