How to run a java program in cmd with arguments
<p>This is a beginner question. I am trying to run a java program from cmd with arguments. 
This is my class:</p>

<pre><code>public class Test{
    public static void main(String[] args){
        System.out.println("This is a test");
        System.out.println(args.length);
    }
}
</code></pre>

<p>I can run it without arguments successfully. How can I put for example 5 and 6 as arguments in my program?</p>

<p>All the other answers I found where just to run the program. I already know how to do that. I was not able to find how to run the program using arguments.</p>