A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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"
subject: How to test whether String A contains String B
String literal pool
regular expression problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014