Adding the basic networking example in java