Sorry to everyone, I figured this out just after I posted, But i do still have another question,

For a certain operation I am required to use log's in determining a variable for example

Var3=log(Var1/Var2)/log(8)

but java doesnt seem to accept log.

What is the appropriate way to use logarithm?

And also while im asking :P, what is the symbol for 'to the power of'?

I tried using Var1=Var2^Var3 and it says operator "^" cannot be applied to float,int?

how do I correct this?

OK, now I have imported the java.lang.math thing but i get an error at this line;

exFac=log*maxbet/log*startBet*(safeSpins-1);

it says log is a variable how do I make it so its just the maths log? I imported java.lang.math and everything.

The Math class is imported by default; you don't need to import it manually.
masijade was suggesting that you look in that class for a method that might be useful to you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.