I am new in java. I am doing chatting program using java. I want to get input from users in client as well as server side. Without blocking the stdin I want get input from stdin. How do I achive this ? Please show the correct path ? Give some views .