添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Q&A for Work

Setup a private space for you and your coworkers to ask questions and share information. Learn more about Teams

marked as duplicate by Thilo java Users with the java badge can single-handedly close questions as duplicates and reopen them as needed. Mar 4 '15 at 12:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question .

... and your "and so on" means what? Presumably you don't mean that every element in the array is 'f' , which is what it looks like. khelwood Mar 4 '15 at 12:47 Well that wasn't specified so i assumed he wants to convert the bytes into their corresponding character values... BeWu Mar 4 '15 at 12:57 Thanks Thilo for the links, sharing code worked for me . byte[] x = {(byte) 0x80,(byte) 0x60}; StringBuilder sb = new StringBuilder(x.length * 2); for(byte b: x) sb.append(String.format("%02x", b & 0xff)); String s = sb.toString(); char[] array = s.toCharArray(); Arjun Mar 4 '15 at 13:53

site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required . rev 2019.8.14.34593