A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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"
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
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-2015