Modulus is killing me, is this right?
x=12.3, y=14, z=5.2
z=y%x++
z=(14%12.3) +1
z=(14/12.3=1.166) +1
z= (Remainder is 1?) +1
z= 2
Printable View
Modulus is killing me, is this right?
x=12.3, y=14, z=5.2
z=y%x++
z=(14%12.3) +1
z=(14/12.3=1.166) +1
z= (Remainder is 1?) +1
z= 2
Can you make a small program with println()s for testing? Compile and execute it to see what happens.
If you have questions about the output, copy and paste it here with your questions.
You should also read up what the "++" operator does in java because from your example I take that you do not correctly understand it at the moment.