Online Java getBytes() function

getBytes - Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array


Run on Java version: