...
Code Block | ||
---|---|---|
| ||
String s = "Some Arbitrary String"; byte [] byteArray = s.getBytes("UTF8"); String ns = new String(byteArray, "UTF8"); // sns prints as "Some Arbitrary String" |
...
...
Code Block | ||
---|---|---|
| ||
String s = "Some Arbitrary String"; byte [] byteArray = s.getBytes("UTF8"); String ns = new String(byteArray, "UTF8"); // sns prints as "Some Arbitrary String" |
...