A simple program in Scala using Eclipse IDE
Step 1: Setup your Eclipse IDE for Scala development
Step 2: In Eclipse, create a new Scala project
From the File menu, select New -> Scala project and provide the project with a name.
Step 3: Create a Scala object
Create a new Scala Object using File -> New -> Scala Object and provide a name for your Scala application - > Click Finish to create the file.
Step 4: Write your program code.
Example:
object InterviewBit
{ def main(args: Array[String])
{
println("Hello Scaler!!!")
}
}
Step 5: Run the Scala program
Click on the Run button or select Run from the menu to run the Scala application. If necessary, set the Run configuration.
Output:
Hello Scaler!!!