String in Java has getBytes() method for converting to byte array ... Suppose you want to use “UTF-8” encoding then it can be done in 3 ways ...
確定! 回上一頁