Your InputStream class only reads and sends one line to the server. Since this isn't in a loop, the
thread terminates immediately, leaving only the thread that's reading data from the server.
By the way, be careful when naming your classes with the same name as a common
Java core class, like Input- and OutputStream. You might want to name these classes ReaderThread and WriterThread, for example.