title: IntelliJ and Scala
body: <p>I'm using Intellij to do some scala development. I normally use Eclipse but was convinced by a friend to give IntelliJ a go. Finding the lack of a 'Problems' view a real pain. But have another problem.</p>
  
  <p>I've got the following code fragement in a test:</p>
  
  <pre><code>import org.junit.Test
  import org.mockito.{Mockito, Mock}
  import java.util
  ...
  
  util.ArrayList aList = Mockito.mock(classOf[util.ArrayList])
  aList.add("")
  </code></pre>
  
  <p>So firstly I get a red bar on the right hand side of the editor screen (shame there's no 'problem view'), and when I hover the mouse over it it says <code>Can not resolve symbol aList</code>.</p>
  
  <p>Can anyone help me understand this?</p>
  
  <p>If I change the ArrayList import to <code>import java.util.ArrayList</code> and remove the prefixs in the code I then get 3 error messages:</p>
  
  <pre><code>Can not resolve symbol aList
  Reference must be prefixed
  Use of postfix method call
  </code></pre>
  
  <p>this is all on the line:</p>
  
  <pre><code> ArrayList aList = Mockito.mock(classOf[ArrayList])
  </code></pre>
  
  <p>So can anyone help me understand this collection of errors? There is no useful help from IntelliJ and a google search didn't shed any light. </p>
  
  <p>Lastly if there is anyone out there who has used IntelliJ and Eclipse for scala+java development could you give me an opinion. It seems to me that IntelliJ is a bit s**t. Or maybe I'm just not getting it...</p>
  
  <p>Thanks All.</p>