My byte array is look like
 byte[] x = { (byte) 0xff , (byte) 0x80  };
how can i convert it to char array {char[] y } where:-
y[0]='f';
y[1] ='f' and so on
                This should help you:
byte[] data = { (byte) 0xff , (byte) 0x80  };
String text = new String(data, "UTF-8");
char[] chars = text.toCharArray();
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With