SyntaxFix
Write A Post
Hire A Developer
Questions
String coolString = "cool string"; byte[] byteArray = coolString.getBytes(); String reconstitutedString = new String(byteArray); System.out.println(reconstitutedString);
That outputs "cool string" to the console.
It's pretty darn easy.