Chat Server and Client in Java

A simple Java Console Application for Chat Server and Client
It uses Sockets in Java

Chat Server

chats.java
  1. span style="color: #006699;">java.io.BufferedReaderjava.io.InputStreamjava.io.InputStreamReaderjava.net.ServerSocketjava.net.Socket"Client connected.."+str);
  2. }
  3. }
  4.  
  5. }

Chat Client

chatc.java
  1. span style="color: #006699;">java.io.BufferedReaderjava.io.InputStreamReaderjava.io.OutputStreamjava.io.PrintWriterjava.net.Socket"localhost"