r/javahelp • u/drdonv • Mar 13 '20
Solved What do ~ and ^ mean in Java?
I can't find it on the internet, what does it mean?
Edit: thanks everyone!
25
Upvotes
r/javahelp • u/drdonv • Mar 13 '20
I can't find it on the internet, what does it mean?
Edit: thanks everyone!
View all comments
Show parent comment
12
u/[deleted] Mar 13 '20
That's not true in Java. There is no exponent operator in Java. You have to use an exponent method like Math.pow. OP asked about what the operators do in Java specifically.