Y
Y
ywitodenasuby2018-09-17 22:27:54
Android
ywitodenasuby, 2018-09-17 22:27:54

Why is the condition not met?

In general I can't compare 2 integers. And this is not the first time, the first time I had to convert to strings and compare strings. I'm not a professional, but I'm writing the first application.

int catsIndexesSize = catsIndexes.size();
                Log.d(TAG, "SIZE:" + catsIndexesSize); // выводит 3
                if(catsIndexesSize>0) {
// не выполняется
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2018-09-18
@ywitodenasuby

There is no code problem here. Probably a problem with the project.
Execute Build | Clean Project / Rebuld Project
5ba04194c0a24417983624.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question