Tag: equals multiplication Sign str nbsp = = conditional Output Logic op amp
Arithmetic operators
+,-,*(multiplication sign),/(division sign, pick-up),%(take remainder, modulo)
Special operators: ++ ( gaga ) , -- ( minus )
int a = 1;
a+=10; equivalent to a=a+10;
a-=5; equivalent to a=a-5;
int a = 1;
Scene 1:system.out.print (a++);//Output 1
int a = 1;
Scene 2:system.out.print (++a);//Output 2
Relational operators
Greater than:> less than:< greater than or equal to:>= less than equals:<= equals sign:= = Not equal to: /c6>!=
logical operators
L && Logic and (press shift+7)--and (and, at the same time)
Multiple conditions, 1 are false, if () all false, multiple conditions are true at the same time, if () is true
L | | (Press shift+ to enter the above |) -or (OR)
Multiple conditions, as long as 1 are true, if () all is true
! (in English state)--take the inverse not equal to! =
Java Arithmetic operators