In this tutorial ill be showing you how to create a method using Scala.
The requirements are:
-Latest Version of IDE
1) Once you have to install Eclipse in your machine, you ill then required to download "Scala IDE for eclipse" and "Scala worksheet".
To get this you need to open: Eclipse > Help > Install New Software as shown in the picture below
once the URL, has been added you need to checklist "Scala IDE for eclipse" and "Scala Worksheet" and click on next and finish.
it will then create 3 items inside the project, right click on "src" and click on New > Scala WorkSheet and it will ask you to give a name for your project.
4) When a blank worksheet has been created, the user must create an object first.
I then created 2 objects which is "c1" and "c2" and gives a different values for each
i.e 100000 is greater than 3000000 shows that the result gave a false answer.