title: How to run Java public static void main from Terminal
body: <p><a href="https://i.stack.imgur.com/4Sd7U.png" rel="nofollow noreferrer">Please click this image for the description</a></p>
  
  <p>Hi guys, so my homework is asking that I run my program on command prompt which would be Terminal for Mac users like me. </p>
  
  <p>How would I run this on Terminal? How to I access bin? </p>
  
  <p>Also for the >java Echo "echo this string"</p>
  
  <p>How can "echo this string" be accessed as arg[0] and arg<a href="https://i.stack.imgur.com/4Sd7U.png" rel="nofollow noreferrer">1</a>? Which is which for arg[0] and arg<a href="https://i.stack.imgur.com/4Sd7U.png" rel="nofollow noreferrer">1</a>???</p>