+ 1

Ive got a question for all u java gurus. What does x++ mean in java.pls leave a like:)

pls like

20th Feb 2017, 1:27 AM
josh
3 Antworten
+ 2
Post increment. It means it will use the value of x, then x will be assigned the original value increased by 1.
20th Feb 2017, 1:31 AM
Jehad Al-Ansari
Jehad Al-Ansari - avatar
+ 1
thx
20th Feb 2017, 1:35 AM
josh
0
x++ is shorthand of x=x+1 so it increases value of one. it is post increment operator. value will be increase by 1 after it is assigned
20th Feb 2017, 3:56 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar