I tried writing a client-server java program with the on my machine. The program seem to compile perfectly with the exception that when I run the programs the client exits without giving any message. Could someone help me out.
If your socket, stream or reader are not initialised you don't initialise them but exit the appliction. As they're declared uninitialised on the line directly prior to your conditional they'll always be uninitialised in the conditional and your application will never do much of anything at all except wonder why it's ready so quickly and terminate in utter confusion.