ok, so if i want to increment soemthing to "2.4," how would i do that?

This is what i have:

While (something == D)
{
     total+=2.4;

}

Would this be correct?

To see the results of your code, add a println statement that prints out the value of the variable after its value is changed. The printout will show you what the code is doing.

Your code does not change the value of something.

ok, so you mean-- system.out.println("total: "); ?

alright, nvm i got it! Thanks though. :)

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.