This is a very amateur program i hv written..i guess its easy to understand with this example
IMP NOTE : Both programs are seperate...but are interdependent on each other..
How to run:
1)run server file in java compiler (eg jcreator,netbeans,cmd etc..)
2)run client file in another java compiler
3)enjoy
sample screenshot:
