That is very important to know. All classes have one or more constructors.
Go back to your lessons about classes and find where it tells you how to write a constructor for a class.
Type: Posts; User: Norm
That is very important to know. All classes have one or more constructors.
Go back to your lessons about classes and find where it tells you how to write a constructor for a class.
If you can not answer the questions I asked you need to spend some more time reading the java basics.
Which of the questions I asked don't you understand?
Do you know what a method is?
Can you...
Can you find the main() method?
Can you find the constructor for the class? Add one if needed.
Select and cut all the code inside of the main() method.
Paste the code into the constructor.
Add...
Move all the code out of the main() method to the class's constructor. Have the main() method call the constructor.
Move the code out of the static method to a non-static method and there will not be a problem.
Please post the full text of the error message.
Something like this:
link = <The value your want showInfo to return>;