File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Today (12/10) is CodeRanch Day in
Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
How to test whether String A contains String B
Joined: Jul 05, 2002
Jul 10, 2002 03:21:00
I want to see if
A contains String B.
String A = "java, c#, delphi";
String B = "java";
then String A contains String B;
but how can I get its result. Which API shall I use?
thx a lot!
Joined: Dec 06, 2001
Jul 10, 2002 03:25:00
This sounds like a homework question so i'm not gonna give you much. But you should be looking at java.lang.string
Pete<br />"Reality is an illusion <br />brought on by a lack of <br />drink, drugs and smut"
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: How to test whether String A contains String B
regular expression problem
String literal pool
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013