Here is my code:
String[] queries = new String[2];
int i = 0;
Boolean result;
queries[i++] = "<query 1>";
queries[i++] = "<query 2>";
result = dbOpenHelper.ExecuteMyTransaction(queries);
The second character is i++highlighted and the warning "The value changed in" I ++ is never used "is displayed. This code was written by a different person, and as far as I know, here <query 1>and <query 2>receive, respectively, queries[1]and queries[2], then he should show an error because the array has a size of 2. There is no mistake, and it confuses me, what is happening here. Is it safe to delete the second destination or change the first to queries[i]?
source
share