The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Stream issue?

So I've been grinding over the summer to make sure I'm ahead of my class when the school year starts, and I recently started dabbing into sockets and datagram servers etc. I haven't fully wrapped my head around it so logic would dictate that I would eventually run into a problem... Here I am...

Ok so I have two classes here; My client singleton that connects to the port and host name I specified and my server singelton that binds to a port. Here they are:

Now a problem arose. That being that every time I attempt to input something (namely "wai") it seems that either the server ignores it, or never even receives it. I'd really love if someone could help me out here. >.<