title: Running a java method from console, using and already inputted method
body: <p>I'd like to write a method that is executable from the console</p>
  
  <p>Say for instance I have a class "Plus" that adds 3 to an int "i". I'm supposed to be able to run the program from the console as follows:</p>
  
  <p>$ java Plus 7<br>
  10</p>
  
  <p>basically I want to read the value after "Plus" as the int "i" a</p>
  
  <p>I can't find any documentation on the subject, but I wasn't really sure how to search. 
  It should be possible with the standard java package, since it's homework.</p>
  
  <p>Any help would be appreciated</p>
  
  <p>Thanks!</p>