summary of operators java
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:
- Title
- bitwise operator in java
- Category
- Java
- Title
- change number into array in java
- Category
- Java
- Title
- java manacher's algorithm
- Category
- Java
- Title
- java djikstra's algorithm
- Category
- Java
- Title
- android switch on change
- Category
- Java
- Title
- java for each
- Category
- Java
- Title
- java literals w3schools
- Category
- Java
- Title
- get day name from date in java
- Category
- Java
- Title
- processing string to int
- Category
- Java
- Title
- how to add all list elements at once in java
- Category
- Java
- Title
- java define custom exception
- Category
- Java
- Title
- how to fill a list with a single value java
- Category
- Java
- Title
- java get input
- Category
- Java
- Title
- deleting elements of an array in java
- Category
- Java
- Title
- java make arraylist
- Category
- Java
- Title
- java double format
- Category
- Java
- Title
- create java windows application
- Category
- Java
- Title
- fibonacci sequence in java recursion
- Category
- Java
- Title
- java how to call getReader twice
- Category
- Java
- Title
- java "->"
- Category
- Java
- Title
- compare list from db and list from request
- Category
- Java
- Title
- javafx action event enter key
- Category
- Java
- Title
- osmdroid offline map does not show
- Category
- Java
- Title
- java calculator code
- Category
- Java
- Title
- java fx display simple rectangle
- Category
- Java
- Title
- initialize scanner java
- Category
- Java
- Title
- inline foreach java
- Category
- Java
- Title
- java program to display characters from a to z using loop
- Category
- Java
- Title
- how to add strings in java
- Category
- Java
- Title
- iterate through an arraylist java
- Category
- Java
- Title
- run spring boot application command line
- Category
- Java
- Title
- convert array to list java
- Category
- Java
- Title
- how to remove spaces from an array in java
- Category
- Java
- Title
- how to do for each in java
- Category
- Java
- Title
- imagesbutton how to set background
- Category
- Java
- Title
- how to create a Rectangle in java
- Category
- Java
- Title
- else statement java
- Category
- Java
- Title
- java hashtable
- Category
- Java
- Title
- @JsonSerializer spring specific field string to date
- Category
- Java
- Title
- ndroid.support.v4.content.FileProvider
- Category
- Java
- Title
- nth prime number java
- Category
- Java
- Title
- can we overload a static method in java
- Category
- Java
- Title
- parsedouble java
- Category
- Java
- Title
- how to create a method java
- Category
- Java
- Title
- java array swap
- Category
- Java
- Title
- switch en java
- Category
- Java
- Title
- hide element selenium
- Category
- Java
- Title
- how to skip a line in java
- Category
- Java
- Title
- check if object is empty java 8
- Category
- Java
- Title
- find the day of the week Calendar class in java
- Category
- Java
- Title
- java 8 add whole array to jsonarray
- Category
- Java
- Title
- java create circle
- Category
- Java
- Title
- catch array out of bounds exception java
- Category
- Java
- Title
- keep jframe on top
- Category
- Java
- Title
- restart application programmatically android
- Category
- Java
- Title
- java boolean even number
- Category
- Java
- Title
- java generate list of random element
- Category
- Java
- Title
- java resultset to table
- Category
- Java
- Title
- how to ask user for his location in android
- Category
- Java
- Title
- saving String character in arraylist
- Category
- Java
- Title
- java file download
- Category
- Java
- Title
- kotlin android intent pass data
- Category
- Java
- Title
- java list get first element
- Category
- Java
- Title
- get random number from enum in java
- Category
- Java
- Title
- java stack
- Category
- Java
- Title
- arraylist to int array java
- Category
- Java
- Title
- Linked List implementation
- Category
- Java
- Title
- how to reverse a list in java
- Category
- Java
- Title
- java file class
- Category
- Java
- Title
- java self signed certificate truststore
- Category
- Java
- Title
- java script zip function
- Category
- Java
- Title
- how to add strings together
- Category
- Java
- Title
- java sql question mark
- Category
- Java
- Title
- java linked list functions
- Category
- Java
- Title
- how to create a button in java
- Category
- Java
- Title
- count occurrences of character in string java 8
- Category
- Java
- Title
- java rest client response json
- Category
- Java
- Title
- fragment button nullpointerexception
- Category
- Java
- Title
- find the triplet sum in java linked list
- Category
- Java
- Title
- java 8 find in list by property
- Category
- Java
- Title
- java convert a string to char[]
- Category
- Java
- Title
- int java
- Category
- Java
- Title
- non primitive data types in java
- Category
- Java
- Title
- how to format a double in java to 2 decimal places
- Category
- Java
- Title
- java getter
- Category
- Java
- Title
- string remove last character
- Category
- Java
- Title
- how to send http post create request using curl command
- Category
- Java
- Title
- how to make a char uppercase in java
- Category
- Java
- Title
- java new string array
- Category
- Java
- Title
- how to create a constructor in java
- Category
- Java
- Title
- android get distance between two locations kotlin
- Category
- Java
- Title
- double round java integer
- Category
- Java
- Title
- run static method java
- Category
- Java
- Title
- convert every character in string to arraylist jva
- Category
- Java
- Title
- how to detect if someone clicks on a jpanel in java
- Category
- Java
- Title
- java get command line input
- Category
- Java
- Title
- StringBuilder java pop back
- Category
- Java
- Title
- how to know when user is done typing android
- Category
- Java
- Title
- how to check if a string contains only alphabets and space in java
- Category
- Java
- Title
- eclipse does not support logback with spring boot
- Category
- Java