Skip to content
Related Articles

Related Articles

Improve Article

Scala Char isIdentifierIgnorable() method with example

  • Last Updated : 03 Nov, 2019

The isIdentifierIgnorable() method is utilized to determine if the stated character is an ignorable character in a Scala identifier or a Unicode identifier.

Method Definition: def isIdentifierIgnorable: Boolean

Return Type: It returns true if the stated character is an ignorable control character else it returns false.

Example: 1#




// Scala program of isIdentifierIgnorable()
// method
  
// Creating object
object GfG
  
    // Main method
    def main(args:Array[String])
    {
      
        // Applying isIdentifierIgnorable() method 
        val result = ('\u0555').isIdentifierIgnorable
          
        // Displays output
        println(result)
      
    }
Output:
false

Example: 2#




// Scala program of isIdentifierIgnorable()
// method
  
// Creating object
object GfG
  
    // Main method
    def main(args:Array[String])
    {
      
        // Applying isIdentifierIgnorable() method
        val result = ('\u000E').isIdentifierIgnorable
          
        // Displays output
        println(result)
      
    }
Output:
true



My Personal Notes arrow_drop_up
Recommended Articles
Page :