How to use the assignment operator in Java
Editor to share with you how to use the assignment operator in Java. I hope you will get something after reading this article. Let's discuss it together.
Public class Operation2 {public static void main (String [] args) {/ / assignment operator int result = 10; result = result+ 1; result++; result+ = 1; result / = 2; result% = 2; result * = 2 System.out.println (result); short s = 10; s = s + 5; s + = 5; System.out.println (s) }} after reading this article, I believe you have some understanding of "how to use assignment operators in Java". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!