title: Run linux Script from Java
body: <p>I have the following java code</p>
  
  <pre><code>ArrayList&lt;String&gt; argList = new ArrayList&lt;&gt;();
  argList.add("Hello");
  argList.add("World");
  String[] args = argList.toArray(new String[argList.size()]);
  
  Process p =Runtime.getRuntime().exec("echo '$1 $2' ", args);
  </code></pre>
  
  <p>result is <code>$1 $2</code> but i want to print <code>Hello World</code>.
  Can anybody help me?</p>