title: Initialize a java object within scala class
body: <p>I want to initialize a java object within scala class, so this works:</p>
  
  <pre><code>def main(args: Array[String]) {
     new Foo
  }
  </code></pre>
  
  <p>But this one doesn't work:</p>
  
  <pre><code>def main(args: Array[String]) {
      new Foo("Hello")
  }
  </code></pre>
  
  <p>My question is, how I can pass arguments to a java object declared inside a scala class?</p>