Assignment #1-TCP in java