Java String getBytes()方法將字符串編碼為字節序列,並將其存儲在字節數組中。 ... str = "Java"; byte[] byteArray; // using UTF-8 for encoding byteArray = str.
確定! 回上一頁