> Hi I was wondering how you divide in eclipse for java.?

Hi I was wondering how you divide in eclipse for java.?

Posted at: 2014-12-18 
The problem is 9.5 x 4.5 - 2.5 x 3 over 45.5 -3.5 and i got it multiply everything just need it to divide

Eclipse is an integrated development environment (IDE). It allows you to enter your program and then submit it to the compiler and set breakpoints and examine values of variables.

But you cannot divide with it.

You divide in Java. Using the "/" operator.

http://en.wikipedia.org/wiki/Integrated_...

====================================

Edit:

I don't know if Michael was just playing with you (which you deserve because you didn't show us any real code (you said you were able to multiply, but it didn't show us that)) ...

... but, you do NOT want to use an int because you have floating point number (with decimal points) in your expression.

Many games can be written without math, like tic-tac-toe and hangman. But that's not the kind of games you probably want to write.

But, you will often be using subroutines that you only need to call. Someone else already put the math inside. You still need to know *when* to use *which* subroutine.

AND, it's OK to dream of being a game programmer, but that's like dreaming of being a movie star or a professional athlete. Relatively few people are going to get those jobs.

So, you shouldn't aspire to being a programmer unless you realize that you might just be creating custom reports with business data.

If you were told you could NOT be a games programmer, do you have any idea of what else you might want to do.

/

Do you mean divide values such as int or double? Once you've casted the variable, you can simply divide by using "/"

For example:

int var=10/5;

(This divides the two numbers for java programming anywhere, not just eclipse)