Main is a static code block and to call a method within the same class you need to declare the other method also as static if you would want to execute the method during run time without instantiating it as an object.
Static methods are class methods and the methods without static keyword in them are instance methods.