Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a simple string question

Status
Not open for further replies.

skarosi

Programmer
Jan 25, 2004
140
GR
Hi all,
I know that my question is quite simple, u might even call it stupid, but i cant find the solution, no matter how much i am look for it.
anyway, I want to check if a string is a part of an other string. I have tried the Substring, but aparently this extracts a string from a bigger string, I also tried a method that compares the two strings one by one from the first char, but thats not what i want, i want to compare it through out the bigger string.
for example to compare "lo" with "Hello" and get a positive return.
thanks, ilias
 
Thanks man,
so it is the indexOf() method. good to know
will give it a try,
cheers
 
I know the API site, but now i moved to a new house, and dont have a DSL connection, so its quite a pain to wait for the API to download. I have a pdf book, but didnt manage to find it there.
anyway, it worked just fine, cheers
 
>>>> Only available for windows

Oh dear :(

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
the API javadocs are your friend - get to know them

Do they play pool?

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top