Can't write command into my DataOutputStream
<p>I can't write my command into my <code>DataOutputStream</code> because it needs datatype <code>BYTES</code>, how can i get the bytes from my command?</p>

<pre><code>"tinymix" -&gt; toBytes
"exit" -&gt; toBytes
</code></pre>

<p>I somehow need to convert this to Bytes, but how?</p>

<pre><code>Process p = Runtime.getRuntime().exec(new String[]{"su", "-c", "system/bin/sh"});

        DataOutputStream stdin = new DataOutputStream(p.getOutputStream());
        InputStream stdout = p.getInputStream();

        stdin.write("tinymix\n"); // THIS LINE IS BROKEN
        stdin.write("exit\n");   // THIS LINE IS BROKEN

        stdin.flush();
        stdin.close();
</code></pre>