title: execute method in cmd without main function
body: <p>I need to execute a method in <code>.java</code> or <code>.class</code> but this class doesn't have a <code>main</code> function (I can't use <code>main</code> function  because it has no return value) I must execute this method in cmd , Is there any way to resolve this problem ?</p>