Robert Redman wrote: But whatever I put in public static void main it does not work.
How to make it work?

main is an entry point and is static, so it exists at runtime, but the Class has not been instantiated, so the rest of the Class is not available. In order to get the rest of the Class, you have to instantiate to get the resulting object.

Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH