# 4. \[Activity] Scala Basics, Part 1

## SCALA CRASH COURSE

### What Is Scala?

* Yet another programming language!
  * It's what Spark is built with
  * New featuress are often Scala-first.
  * You can also program Spark with Python or Java
* Runs on top of the Java virtual machine
  * Can access Java classes
* Functional programming

### Adminstrative Note

* The instructor will attach sample code to each lecture on platforms that support it
* But you downloaded these same files in lesson 2 - you can import them from whereever you saved them instead if you want.

### Activity

* Go to the resources folder and download LearningScala1.sc
* Open Eclipse-Scala IDE and create a new Scala Project called LearningScala
* Right click on LearningScala Project, and import the file LearningScala1.sc from the file location you have download the source resource of SparkScala
* Double click on LearningScala1.sc and you should see the scala code written in the file
* Scala can implicitly figure out the type for its val


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alvintoh.gitbook.io/apache-2-0-spark-with-scala/section-2-scala-crash-course/4.-activity-scala-basics-part-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
