summary of operators java
= Simple assignment operator
+ Additive operator (also used
for String concatenation)
- Subtraction operator
* Multiplication operator
/ Division operator
% Remainder operator
instanceof Compares an object to
a specified type
== Equal to
!= Not equal to
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
~ Unary bitwise complement
<< Signed left shift
>> Signed right shift
>>> Unsigned right shift
& Bitwise AND
^ Bitwise exclusive OR
| Bitwise inclusive OR
&& Conditional-AND
|| Conditional-OR
?: Ternary (shorthand for
if-then-else statement)
+ Unary plus operator; indicates
positive value (numbers are
positive without this, however)
- Unary minus operator; negates
an expression
++ Increment operator; increments
a value by 1
-- Decrement operator; decrements
a value by 1
! Logical complement operator;
inverts the value of a boolean
Also in Java:
- jbutton close jframe java
- number to string java
- place.getlatlng() returning null
- how to know if String is the same java
- java how to define a function
- isSelfDivisor java
- add one character to string java
- java override equals and hashcode
- java set value of arraylist
- number of matches regex java
- java string to uuid
- android how to know when snackbar is done
- Enums injava
- output statement java
- determine if a given binary tree is a valid bst
- how to open a text file in java
- java stack methods
- java min function
- parallel sorting in java 8
- ndroid.support.v4.content.FileProvider
- iterate through hashtable java
- java lambda list of objects cast
- Building a maven EAR project and specifying the configuration of which projects to include, what is the element in the plugin configuration that contains Enterprise Java Bean Projects:
- java find duplicates in array