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