Try to search your question here, if you can't find : Ask Any Question Now ?

How to check which part of string is equal to text?

HomeCategory: stackoverflowHow to check which part of string is equal to text?
julie asked 2 weeks ago

I want to check which part of string is equal to text, from part 0 to count.

So I tried this:

int count = 1;
int city = 0;
String finall = "gggg,dddd";
String[] separated = finall.split(",");

for (int i = 0; i < count; ++i)
            if (selectedCities.equals(separated[i])){
                city = 1;
            }

How to increment each time the i in 1 until it reaches the value of count?

1 Answers
Best Answer
Fernando answered 2 weeks ago
Your Answer

5 + 13 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com