Error message here!

Hide Error message here!

忘记密码?

Error message here!

请输入正确邮箱

Hide Error message here!

密码丢失?请输入您的电子邮件地址。您将收到一个重设密码链接。

Error message here!

返回登录

Close

Self increasing and self decreasing operators of java basic operators

-Geng Rui- 2022-06-23 23:29:39 阅读数:0 评论数:0 点赞数:0 收藏数:0

This operator has only two Self increase and self decrease
The corresponding symbol is ++ and –

public class HelloWorld {

public static void main(String args[]) {

int i = 50;
i++;
System.out.println(i);
int j = 50;
j--;
System.out.println(j);
}
}

The operation effect is as follows
 Insert picture description here In short Gaga Namely +=1 reduce Namely -=1
But this one is really useful Then there will be some scenes
++i and i++ The result is the same

Copyright statement
In this paper,the author:[-Geng Rui-],Reprint please bring the original link, thank you