Create socket.java

Source Code for Communication with socket