Re: how to insert space in a string
- From: Donkey Hottie <spam@xxxxxxxxxxxxxxxxx>
- Date: 31 Oct 2008 17:37:35 GMT
KC <kenchengtk@xxxxxxxxx> wrote in
news:ff4beec7-75fb-4b98-8979-3e77f82ca4c3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
thx for reply, I have try thr string.function(s), like .compare... but
not sure which one is capable for this case, if for vb syntax, I know
how to findout the exact postion of newline char in the string var,
but java, I have no idea
Java is very well documented in the internet.
Just google "java string" and click the javadoc link which will come. That
works for every class.
Java String has indexOf() -method which you can you to get the exact
position of newline char in the string var.
int pos = myString.indexOf("\r\n");
.
- References:
- how to insert space in a string
- From: KC
- Re: how to insert space in a string
- From: KC
- Re: how to insert space in a string
- From: GArlington
- Re: how to insert space in a string
- From: KC
- how to insert space in a string
- Prev by Date: Re: making swing application to launch from desktop
- Next by Date: Re: 7.0 wishlist?
- Previous by thread: Re: how to insert space in a string
- Next by thread: Re: how to insert space in a string
- Index(es):