Scala Long !=(x: Int) method with example Last Updated : 02 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report In Scala, Long is a 64-bit signed integer, which is equivalent to Java's long primitive type. The !=(x: Int) method is utilized to check whether the given Long and int value are equal to each other or not. Method Definition - def !=(x: Int): Boolean Returns - Returns true if this value is not equal to x, false otherwise. Example #1: SCALA // Scala program to explain working // of Long !=(x: Int) function // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying !=(x: Int) function val result = (10).toLong.!= (10:Int) // Displays output println(result) } } Output: false Example #2: SCALA // Scala program to explain working // of Long !=(x: Int) function // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying !=(x: Int) function val result = 1186000000.toLong.!= (1296:Int) // Displays output println(result) } } Output: true Comment More infoAdvertise with us S Shivam_k Follow Improve Article Tags : Scala Scala-Method Similar Reads Scala Programming Language Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriented programming language which also provides support to the functional programming approach. Scala programs can convert to bytecodes and can run on the JVM (Java Virtual Machine). Scala stands for S 3 min read Scala Tutorial â Learn Scala with Step By Step Guide Scala is a general-purpose programming language that combines both object-oriented and functional programming. Designed for scalability and flexibility, it allows developers to write concise and maintainable code for everything from small scripts to large enterprise systems. First released in June 2 15+ min read Introduction to Scala Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriented programming language which also provides the support to the functional programming approach. There is no concept of primitive data as everything is an object in Scala. It is designed to express 7 min read Scala | flatMap Method In Scala, flatMap() method is identical to the map() method, but the only difference is that in flatMap the inner grouping of an item is removed and a sequence is generated. It can be defined as a blend of map method and flatten method. The output obtained by running the map method followed by the f 4 min read For Loop in Scala In Scala, for loop is also known as for-comprehensions. A for loop is a repetition control structure which allows us to write a loop that is executed a specific number of times. The loop enables us to perform n number of steps together in one line. Syntax: for(w <- range){ // Code.. } Here, w is 6 min read Scala vs Java Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, etc. Java applications are compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. Scala is a general-purpose, high-level, multi-paradigm program 2 min read Scala Console | println, printf and readLine Console implements functions for displaying the stated values on the terminal i.e, with print, println, and printf we can post to the display. It is also utilized in reading values from the Console with the function from scala.io.StdIn. It is even helpful in constructing interactive programs. Let's 2 min read Hello World Program : First program while learning Programming In this article, I'll show you how to create your first Hello World computer program in various languages. Along with the program, comments are provided to help you better understand the terms and keywords used in theLearning program. Programming can be simplified as follows: Write the program in a 6 min read How to Install Scala with VSCode? Scala is a multi-paradigm, general-purpose, high-level programming language. It is an object-oriented programming language that also supports functional programming and it is easy to use. Its applications can be converted to bytecodes and executed on the Java Virtual Machine (JVM) (Java Virtual Mach 2 min read Class and Object in Scala Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real-life entities. Class A class is a user-defined blueprint or prototype from which objects are created. Or in other words, a class combines the fields and methods(member function which defines actions) 5 min read Like