Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the assignment operator in Java

Shulou Source: shulou.com Published: 2022-06-02 04:45:12 11月15日 Update

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!

Tags: Operators operations articles done more knowledge industry information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei macOS Microsoft MySQL Shulou Technology