• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Basic Java help.

FortFunFoSho

Golden Member
Hey everyone!

Trying to use a method out of java.lang

Except I don't know how to use it.

it is:

public static void double pow(double num1, dounle num2) throws ArithmeticException

I know this is a basic question, but I am just getting into Java.

What do I need to declare aside from

import java.lang.*;

Then how do I actually use this?

Do I put:

amount = pow(num1, num2);

Help!
 
Hello again...

I'm not trying to be rude, but seriously, have you actually read any of your book? If you don't know how to call a method of a class (the Math class) then just giving you the answer won't help any.

Look at the Math class in the docs.
 
For the love. You are being rude. I have read my book and as stated before I am very new to this. Forgive me for trying to implement something I don't know how to use.

Thank you for the link.
 
Originally posted by: FortFunFoSho
For the love. You are being rude. I have read my book and as stated before I am very new to this. Forgive me for trying to implement something I don't know how to use.

Thank you for the link.

I understand. I'm trying to be constructive...

I was simply trying to say that learning to use pow before knowing the fundamentals is like trying to run a marathon before you can walk. Knowing the fundamentals would make the use of pow obvious.

Good luck...
 
Back
Top