2021年1月19日星期二

java meaning of expression, if else condition shortcuts

What does head = head + 1 == array.length ? 0 : head +1; mean? Does ? means if(condition) and : means else? Can someone write out this expression?

https://stackoverflow.com/questions/65802504/java-meaning-of-expression-if-else-condition-shortcuts January 20, 2021 at 11:04AM

没有评论:

发表评论