##Java 8 vs. Scala Workshop
This workshop contains exercises to get familiar with new features in Java 8, including default methods in interfaces, functional interfaces, lambdas, and streams. The workshop contains similar exercises for Scala, where some of the problems can be solved using type classes and traits.
Slides for the workshop are located in the slides folder of the project.
###Setup
- Install Maven (http://maven.apache.org/download.cgi)
- Install Java 8 JDK (http://www.oracle.com/technetwork/java/javase/downloads/)
- Install git (http://git-scm.com/downloads)
- Install Scala plugin for your IDE
- Clone the project:
git clone [email protected]:matiasvinjevoll/java8-scala-workshop.git
- Execute
mvn compile
from the project root folder - Run
mvn test
to execute the tests (they should all fail) - Import the project to your IDE
###Setup with IntelliJ
- Install git (http://git-scm.com/downloads)
- Clone the project:
git clone [email protected]:matiasvinjevoll/java8-scala-workshop.git
- Download and extract Java 8 JDK (http://www.oracle.com/technetwork/java/javase/downloads/)
- Install IntelliJ (http://www.jetbrains.com/idea/download/)
- Install Scala plugin
- Import the project (pom.xml) in IntelliJ
- Add the extracted Java 8 JDK folder as a JDK home path, either when importing the project, or from [right click on project root] -> Open Module Settings -> Platform Settings -> SDKs -> + (to add)
- Make sure Java 8 SDK is used for the project: [right click on project root] -> Open Module Settings -> Project Settings -> Project -> Project SDK
- Make project: Build -> Make Project
- Run tests (they should all fail): [right click on project root] -> Run 'All Tests'