Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS"
I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure if its possible, thanks in advance.
Webbsta
0
Light Poster
Recommended Answers
Jump to PostNo, it is not possible. Main() is the only method that can be run with the "java myClass" call from the OS.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.