title: how to send an array of bytes over a TCP connection (java programming)
body: <p>Can somebody demonstrate how to send an array of bytes over a TCP connection from a sender program to a receiver program in Java.</p>
  
  <pre><code>byte[] myByteArray
  </code></pre>
  
  <p>(I'm new to Java programming, and can't seem to find an example of how to do this that shows both ends of the connection (sender and receiver.) If you know of an existing example, maybe you could post the link. (No need to reinvent the wheel.) P.S. This is <strong>NOT</strong> homework! :-)</p>