TCP Echo Client and Server in Java (a reference)

Simple TCP echo client/server programs. I wrote these because I need to understand how clients and servers work in Java (my native language) before understanding them in Python.