I think your questions are all closely related, so I have made a
single thread out of them.
Stephan van Hulst wrote:. . . If you don't know how to do any of that, I suggest you read through the Java tutorials.
A few minutes ago, I wrote:Please go back to what you were taught at the very first. Please revise the general structure of a class . . .
It would appear we both think you have forgotten the basics of writing a class, and I think that correcting that will correct many of your problems.