What is <

This question already has an answer here:

  • What is the “-->” operator in C++? 21 answers

  • <-- is not a new Java operator (even though it may look like it), but there are 2 normal operators: < and --

    while (var2 <-- var1) is the same as while(var2 < (--var1)) , which can be translated to plain english as:

  • decrement the var1 variable ( --var is a prefix decrementation, ie. decrement the variable before condition validation)
  • Validate the condition var2 < var1

  • <-- There is no such operator in java.

    It is var2 < (--var1) A relational + decrement operator.

    链接地址: http://www.djcxy.com/p/1970.html

    上一篇: >在Java中意味着什么?

    下一篇: 什么是<