• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with System.out.println  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I am facing a problem in the below code. The system.out.println in the while loop is not displaying on the console, even though the program is running fine.

The code on server side (Echo Server Program)

 
Sheriff
Posts: 4293
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the lines looks like this:



Shouldn't that be

 
Bartender
Posts: 1603
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works for me. After evey line from the client, I see dndjj displayed on the console.
     Waiting for connection.....
     dndjj
     dndjj
     dndjj
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!