title: Checking null value in Scala for Java data type
body: <p>I have call in Scala code which give Java <code>Double</code> type which can be <code>null</code> how can I check between null and non-null value in Scala code?</p>
  
  <pre><code>val myJavaDoubleValue: Double = thirdpartyCall.collectValue()
  if(myJavaDoubleValue == null) {
    println("Is NULL")
  } else {
    println("Is NOT NULL")
  }
  </code></pre>
  
  <p>Any suggestion on doing this in Scala way?</p>