answersLogoWhite

0


Best Answer

You can use the Math.pow function to raise one number to the power of another.

Math.pow(24, 3) will return 243

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
ReneRene
Change my mind. I dare you.
Chat with Rene
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

Earn +20 pts
Q: How do you write exponents in Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp