Southperry.net
Java programming help - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14)
+--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58)
+--- Thread: Java programming help (/showthread.php?tid=3490)



Java programming help - Horusmaster - 2008-09-17

is there a command for calculating the square root of a number? if so, what is it?

I'm new to the java language and so far we've only learned basic operation and if and switch. but for this program i have to write for hwk, I have to use square root.


Java programming help - Nikkey - 2008-09-17

Math.sqrt(double d) or Math.pow(double d, 0.5) (I've not checked what's faster, actually. Something I should do)
Math-class. (Static, don't initialize it)

Use the Java API next time you need to look up something.


Java programming help - Horusmaster - 2008-09-17

TYVM!!!!

now i can finally finish my hwk