Do you understand about arguments to methods and constructors?
The args used when calling a method or a constructor must match those used in that method or constructor's definition. Look at the...
Type: Posts; User: Norm
Do you understand about arguments to methods and constructors?
The args used when calling a method or a constructor must match those used in that method or constructor's definition. Look at the...
Use the equality operator == for comparing two primitive values, not the assignment operator: =
Please explain what your problems are. What have you tried?
See the tutorial:
Providing Constructors for Your Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)...
Post your code and any questions about the problems you are having with it.