Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to read/display a sentence after or before a specific character?

843789Aug 15 2010 — edited Aug 16 2010
Hi

I am trying to show a users firstName after the 1st charter

i.e. the name is Kevin

I only want to show EVIN not k, how would I do that?

Can I use charAt??

and what if I want to show a users firstName before a certain character

i.e. the name is Kevin I only want to show KEV and not IN
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2010
Added on Aug 15 2010
11 comments
410 views