answersLogoWhite

0

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

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

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