Java Character.isDefined(char ch)

Syntax

Character.isDefined(char ch) has the following syntax.

public static boolean isDefined(char ch)

Example

In the following code shows how to use Character.isDefined(char ch) method.


public class Main {
//from www.  j  a  v  a  2s  .  c  o m
   public static void main(String[] args) {
      char ch = '@';
      boolean b = Character.isDefined(ch);
      System.out.println( "Character " +ch+ 
          " has defined meaning in Unicode is " +b );
   }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable