title: How to call main method of a Scala program from the main method of a java program?
body: <p>Suppose I have a Scala class and a Java class in a Java project and the scala class is like below </p>
  
  <pre><code>class Sam {
  
    def main(args: Array[String]): Unit = {
      println("Hello")
    }
  
  }
  </code></pre>
  
  <p>How can I call it's main method from the main method of a java program which is present in the same project</p>