T3: Knowledge Tip Of The Day.........
Assignment Operators
Assignments operators in
java are: =, +=, -=, *=, /=, %=
num2 = num1 would assign value of variable num1 to the variable.
num2 = num1 would assign value of variable num1 to the variable.
n2+=n1 is equal to n2 =
n2+n1
n2-=n1 is equal to n2 =
n2-n1
n2*=n1 is equal to n2 =
n2*n1
n2/=n1 is equal to n2 =
n2/n1
n2%=n1 is equal to n2 = n2%n1
No comments:
Post a Comment