Re: how to insert space in a string



Arne Vajhøj wrote:
Mark Space wrote:
KC wrote:
Hi all,

I m new in Java, Im not know well about Java syntax, for now, I need
to reform a string var, find out the newline char ( "\r\n" ) and

This bit here is easy in Java. I think split() is what you want.

String[] lines = in.split( "\n\r" );

I think you mean "\r\n" ...

Arne

Doh!
.