List of usage examples for java.lang Character reverseBytes
@HotSpotIntrinsicCandidate public static char reverseBytes(char ch)
From source file:Main.java
public static void main(String[] args) { char ch1 = '\u4d00', ch2; ch2 = Character.reverseBytes(ch1); String str = "Reversing bytes on ch1 gives " + ch2; System.out.println(str);// w ww . j ava 2 s.com }