Hello,

My solution to get rid of these line feed chars was as following (added
lines in bold):

 

ConnectionClient.java:

 

/*  Read data from the standard input and send it to the remote socket
*/

            while (true) {

                byte[] inData = new byte[100];

 

                for(int i = 0; i < inData.length; i++)

                    inData[i]= ' ';

 

                System.in.read(inData);

 

 

I don't have an explanation why these chars suddenly appear in my output
when in the same time nothing like that exists in the Lab output on
javapassion.com (????)

 

Regards,

Moria.

 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of Eyas
Kopty
Sent: Friday, October 30, 2009 2:11 PM
To: [email protected]
Cc: [email protected]
Subject: [java programming] Re: Extrange result in lab 1108 exercise 1

 

Hi ...

        I am getting the same? can some one explaint why are we getting
these square chars?

 

Cheers

Eyas

On Thu, Jul 30, 2009 at 10:13 PM, Alfredo Torres
<[email protected]> wrote:

Hi all,

  I write the server side project and the client side project as
described in hands on lab  but when i run the instances of
ConnectionClient i get in the server side this:

run:
Listening for connections...
Connection 1, started
[1]: This is a message from ConnectionClient instance 1
about 50 unknown characters (i suppose there are linefeeds)
Connection 2, started
[2]: This is a message from ConnectionClient ins(about 100 unknown
characters (i suppose there are linefeeds))
[2]: tance 2
about 150 unknown characters again (i suppose there are linefeeds)
Connection 2, ended
Connection 1, ended
BUILD STOPPED (total time: 50 seconds)

Is there something wrong or is a normal presentaiton of the output
window in Netbeans for windows xp???

Any explanaiton will be apreciated
-- 
Saludos
Alfredo Torres
Hab.+58 212 9446304
Cel. +58 416 6118599



 




--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to