List of usage examples for java.lang String format
public static String format(String format, Object... args)
From source file:Main.java
public static void main(String[] args) { for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) { if (Character.INITIAL_QUOTE_PUNCTUATION == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//w w w. j ava 2 s .co m } }
From source file:Main.java
public static void main(String[] args) { for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) { if (Character.FINAL_QUOTE_PUNCTUATION == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }// w w w . ja va 2 s . com } }
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 w w w. ja va 2 s . co m*/ } }
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_WHITESPACE == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/* w ww .j a va 2s . c o m*/ } }
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_RIGHT_TO_LEFT == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from w w w .ja v a 2 s . co m } }
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_LEFT_TO_RIGHT == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//w w w . j av a2 s. c o m } }
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_ARABIC_NUMBER == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from w w w .jav a 2 s .co m } }
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_OTHER_NEUTRALS == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from www .ja v a 2s. c o m } }
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_NONSPACING_MARK == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w ww. jav a 2s . com*/ } }
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_EUROPEAN_NUMBER == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/* w ww .j a v a 2 s . co m*/ } }