I have encountered in this statement(the line after "**") which looks like an if else. I would be happy if someone can explain me what is that means.
boolean ascending = true;
for (int i = 1; i < data.length; i++) {
**boolean goingup = data[i] == data[i - 1] ? ascending : data[i]>= data[i - 1];**
In addition, I would like to hear some advises how to search this kind of questions online, instead of make queries.
thanks :)
Aucun commentaire:
Enregistrer un commentaire