Possible Duplicate:
^ operator in java
I was assuming that c ^ d
is a calculation like 'the power of', so c = 5
, d = 2
, result is 25. I think I'm wrong, though.
Can you explain what (c ^ d)
does in java, for example in
result = result + (char)(c ^ d)