From e2fe9d1fc59967c4872875ce944280c1ca6ec4cd Mon Sep 17 00:00:00 2001 From: Priyanshu kumar Date: Thu, 29 Nov 2018 06:32:27 +0530 Subject: [PATCH] Added Example and work of += operator (#23826) * Added Example and work of += operator * Fixed formatting --- guide/english/java/basic-operations/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/english/java/basic-operations/index.md b/guide/english/java/basic-operations/index.md index 41ca98bf2d7..8d586e49cfe 100644 --- a/guide/english/java/basic-operations/index.md +++ b/guide/english/java/basic-operations/index.md @@ -22,6 +22,10 @@ While most of the operations are self-explanatory, the Conditional (Ternary) Ope `expression that results in boolean output ? return this value if true : return this value if false;` +The Assignment operators (`+=`, `-=`, `*=`, `/=`, `%=`, `<<=`, `>>=`, `&=`, `^=`, `|=`) are just a short form which can be extended. +Example: +(`a += b`) does the same thing as (`a = a + b`)! + Example: True Condition: