Programming tutorials online .NET, Java, C++, Visual Basic, and More
 

Home
.NET Tutorials
General Programming Tutorials
Community/Forums
Site Extras

 

Java/J2EE Forum
 

Open forum for discussing anything Java related. J2EE, JSPs, servlets, EJBs, JDBC, its all fair game and can be found in the Java/J2EE forum!


POST REPLY
Posted By: mail2techy   6/2/2006 8:30:00 AM
Reply To: retsuya who posted...
 
instead of doing this,

while(){
System.out.print((char)client.in.read());
}

do ,

volatile boolean flag = true;
char ch = 0;
while(flag)
{
ch = (char)client.in.read();
if(ch == 13)
flag = false;
System.out.println(ch);
}

i hope this should work



 
Sign In
Email
Password
  Forgot my password

Search

Featured Book

Introducing Microsoft .Net, Third Edition ($19.79)
Introducing Microsoft .Net, Third Edition


Featured Software

Microsoft Visual Studio Standard 2005 ($249.99)
Microsoft Visual Studio Standard 2005