Example usage for java.lang Character DIRECTIONALITY_UNDEFINED

List of usage examples for java.lang Character DIRECTIONALITY_UNDEFINED

Introduction

In this page you can find the example usage for java.lang Character DIRECTIONALITY_UNDEFINED.

Prototype

byte DIRECTIONALITY_UNDEFINED

To view the source code for java.lang Character DIRECTIONALITY_UNDEFINED.

Click Source Link

Document

Undefined bidirectional character type.

Usage

From source file:Main.java

public static void main(String[] args) {
    for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) {
        if (Character.DIRECTIONALITY_UNDEFINED == Character.getDirectionality(ch)) {
            String s = String.format("\\u%04x", (int) ch);
            System.out.println(s);
        }/*from ww  w .j a va 2s.c o  m*/
    }
}