i am having a problem with string comparison. For example, I have this string:
"hello world i am from heaven"
I want to search if this string contains "world". I used following functions but they have some problems. I used String.indexof()
but if i will try to search for "w" it will say it exists.
In short i think i am looking for exact comparison. Is there any good function in java??
Also is there any function in java that can calculate log base 2?