title: Command line arguments Java
body: <pre><code>public class Test{
  int Trails;
  int Days
       public static void main (String []args){
       if(args.length!=0){
          numT = Integer.parseInt(args[0]);
          numD = Integer.parseInt(args[1]);
       }
       Trails=numT;
       Days=numD;
       }
  }
  </code></pre>
  
  <p>I am trying to get input from the command line and then store them into globals but because they are being done in the main, it wants me to make everything static.  Is there another way I should be doing this so that I can then do things with the data?</p>