Suppose I have a Scala class and a Java class in a Java project and the scala class is like below

class Sam {

  def main(args: Array[String]): Unit = {
    println("Hello")
  }

}

How can I call it's main method from the main method of a java program which is present in the same project

Edit
Report