title: Mixing Java code in Scala program?
body: <p>Is this allowed in Scala code:</p>
  
  <pre><code>DomNode node = node.getFirstChild()
  </code></pre>
  
  <p>where DomNode is Java type from external java library and getFirstChild() is defined on DomNode type.</p>
  
  <p>I am porting existing java program to scala and it would be very convenient if I leave original java declerations as is to minimize porting efforts.</p>