String str = new String(byte[] theBytes);byte[] theBytes = str.getBytes();theBytes = str.getBytes(String charSet);