Monday, August 13, 2018

Scala Setup and First Example

Hello All,

I am also new to scala so I am also trying to do setup for do setup of scala hope it will help you.

Best way to learn any language is to download its IDE,It will save your manual efforts.

second way is to use scala binary and run your application from command prompt.

I am going to use eclipse ide for scala.

1)You can download it from the scala's official site

http://scala-lang.org/download/

2)Download file and unzip on your machine.

3)Run eclipse.exe file from \scala-SDK-4.0.0-vfinal-2.11-win32.win32.x86\eclipse

4)It will ask you for workspace,Create any folder and give its path.

e.g.c:\scala\testapplication

5)Create your first scall application from

File=>New=>Other=>scala application

6)Give class name in popup window

e.g.Hello.scala

7)add prinln("Hello World") in that file and run it.

e.g.

package com.sagar.basic

object Hello extends App {

println("Hello World");

}

Output would be: Hello World

No comments:

Post a Comment

How to check whether operating system is 64 bit or 32bit?

What is 32 and 64 bit operating system? The terms 32-bit and 64-bit refer to the way a computer's processor that is CPU, handles info...