In Scala, Long is a 64-bit signed integer, which is equivalent to Java’s long primitive type. The !=(x: Long) method is utilized to check whether the given Long value is equal to each other or not.
Method Definition – def !=(x: Long): Boolean
Returns – Returns true if this value is not equal to x, false otherwise.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.