How to use Scala in IntelliJ IDEA (or: why is it so difficult to get a working IDE for Scala)?

I have encountered the same scalac error when trying to run a Scala project in Intellij Idea 9.0.2 and I’ve managed to find a solution by chance :). These are the steps I took in creating the project and running it. I have created a Scala project in Intellij Idea 9.0.2 final (it was released … Read more

Converting a Java collection into a Scala collection

For future reference: With Scala 2.8, it could be done like this: import scala.collection.JavaConversions._ val list = new java.util.ArrayList[String]() list.add(“test”) val set = list.toSet set is a scala.collection.immutable.Set[String] after this. Also see Ben James’ answer for a more explicit way (using JavaConverters), which seems to be recommended now.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)