• 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.

Quick java question...

bubbadu

Diamond Member
Does anyone know how to raise something to an exponent in java? I tried the ^ operator and it didnt work, also tried,
10^+3 and that didnt work either... THANKS.
 
Use Math.pow(num,exponent); It will return the result of num raised to exponent. the ^ operator is a bitwise exclusive or.
 
Talk about Java, can anyone recommend good books for it? Have to learn it for school 🙁

I'm a C & C++ guy myself so I already know how to code.

Are there any "classics" as far as Java goes? Like a K&R in that respect.
 
Since you're familiar with basics, you'll just want a simple cut and dry version with just the basic information, try the Sams Teach Yourself Java 2 in 24 Hours book. I like it because it gives all the information in a small amount of text. It doesn't teach objects very well though, so since you already know C and C++, this should be fine
 
Back
Top