Archive for December, 2009

java2scala #3: Variables and functions

Tuesday, December 29th, 2009

In this third post of our java2scala series we will take a look to variables and functions definition and use. As usual you can find the full maven/eclipse project on github. Java class package it.javalinux.samples.java.post3; class VariablesAndFunctions { private final String inputString; public int fooIntVar = 11; public final String fooStringVal = "fooString"; private double privateIntVar = 1.1; private ...

java2scala #2: Hello world

Wednesday, December 16th, 2009

The first java2scala samples we are going to discuss is generated by creating project from maven archetype. Let me remember you that you need an environment with: Eclipse with eclipse-scala plugin maven wih maven-scala plugin git to clone the project from github. This is optional, you can of course download the code directly with ...

java2scala #1: Introduction

Sunday, December 13th, 2009

This is the very first post of a new series in which I'll try to introduce scala to an audience supposed to be a quite expert and very busy Java programmer. I don't want to discuss here if scala will be the next success language in favour of Java (even ...