I'm trying to create a Java API that I will use in other projects.
I understand that if I create new classes I can make objects in the other projects that have those classes. But what I want right now is a way to just create a method that isn't part of an objects that I can call upon whenever I wish without having to create a new object.
So what I'm asking is, how would I create a method like this where I can pass in parameters from another project and the api project will do whatever I put in the method involving those perameters? Do I need to make the methods static or what?
When I try to just access the class with the class name and then import that class from the api, it doesn't allow me to use a public void method that I created.