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.LOWERCASE_LETTER == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from w w w .j av a 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.DECIMAL_DIGIT_NUMBER == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w w w . j a v a 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_PUNCTUATION == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*from w ww. java 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.START_PUNCTUATION == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/* ww w . j a v 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.CONNECTOR_PUNCTUATION == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }// ww w . ja v 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.PARAGRAPH_SEPARATOR == Character.getType(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }//from www . j a v a2 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.COMBINING_SPACING_MARK == Character.getType(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.ENCLOSING_MARK == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/* ww w .j a 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.END_PUNCTUATION == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }/*www. j a v 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.TITLECASE_LETTER == Character.getDirectionality(ch)) { String s = String.format("\\u%04x", (int) ch); System.out.println(s); }// ww w . j a v a2 s . c o m } }