Convert byte array to String
问题 How do I convert a byte array to a String in BlackBerry? I have used new String(bytearray,encoding type); I am getting [B@fb5955d6 when calling toString().Can anyone help get this string in a readable format for BlackBerry? 回答1: You don't show us where this byte data is coming from, or what value you expect it to have. So, I'm not sure I can fully debug your problem. But, hopefully this helps: The reason you are seeing [B@fb5955d6 printed out when you simply call toString() on your byte array