Welcome to the Ranch
That is a common mistake. You are trying to contact something from a static method, possibly the main method. you should consider whether you are right working in a static context in the first place. Then, you need to create an object reference and call methods on that.
machines help you to do more, but experience less. Experience this tiny ad: