^ in java does not mean to raise to a power. It means XOR. You can use java's Math.pow(). And you might want to consider using double ...
確定! 回上一頁