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.isDigit(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from w ww . ja va 2 s . c om } }
From source file:Main.java
public static void main(String[] args) { for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) { if (Character.isMirrored(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//w w w .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.isSurrogate(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w ww. jav 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.isHighSurrogate(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from w w w.ja v a 2 s . c om } }
From source file:Main.java
public static void main(String[] args) { for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) { if (Character.CONTROL == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from ww w .java2s . 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.SURROGATE == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }// www .j a va 2 s . c om } }
From source file:Main.java
public static void main(String[] args) { for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) { if (Character.MATH_SYMBOL == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w w w . ja va 2 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.PRIVATE_USE == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*ww w .j a va 2s. 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.OTHER_LETTER == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from ww w. j a v a 2 s .c om } }
From source file:Main.java
public static void main(String[] args) { for (char ch = Character.MIN_VALUE; ch < Character.MAX_VALUE; ch++) { if (Character.OTHER_SYMBOL == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w w w .j av a 2s . c om*/ } }