title: Properly use Java libraries in Scala
body: <p>I am learning Scala and I am unable to figure out how to <strong>properly use commands from Java libraries in Scala</strong>. I show below what am trying to do in a command-line.</p>
  
  <pre><code>collier@Nacho-Laptop:~$ scala
  Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.7.0_25).
  Type in expressions to have them evaluated.
  Type :help for more information.
  
  scala&gt; import java.text._
  import java.text._                                               ^
  
  
  scala&gt; println(java.text.DateFormat.getCalendar())
  &lt;console&gt;:11: error: value getCalendar is not a member of object java.text.DateFormat
                println(java.text.DateFormat.getCalendar())
                                             ^
  
  scala&gt; println(java.text.getCalendar())
  &lt;console&gt;:11: error: object getCalendar is not a member of package java.text
                println(java.text.getCalendar())
                                  ^
  
  scala&gt; println(getCalendar())
  &lt;console&gt;:11: error: not found: value getCalendar
                println(getCalendar())
                        ^
  
  scala&gt; getCalendar()
  &lt;console&gt;:11: error: not found: value getCalendar
                getCalendar()
                ^
  
  scala&gt;
  </code></pre>