How to use --- public byte getByte() in Java

2007-03-23 6:21 pm
If I have the string SN ( 8 characters)and want to put into the Byte arrange B. Please help.

回答 (1)

2007-03-27 10:03 am
✔ 最佳答案
String SN = "hkyauims";
byte [] B = new byte[SN.length() - 1];
SN.getBytes(0, SN.length() - 1, B, 0);
System.out.println(B);


收錄日期: 2021-04-13 21:27:44
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070323000051KK00668

檢視 Wayback Machine 備份