This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Welcome to the JavaRanch, Zeeshans. We love to help people with java, but because we see a lot of people trying to cheat on their homework assignments we like people to do their own work and ask us only for answers on specific questions. What problems were you having? Have you read the Java Tutorial on Networking?