vendredi 30 octobre 2015

Find first null value of an Array[Int]

I'm using scala but how test if a value is null or not ? Especially in a Array[Int]

In java it's :

if( tab[i] == null )

On scala, same test , ide says :

comparing values of types Int and Null using `==' will always yield false

Thanks you

Aucun commentaire:

Enregistrer un commentaire