Solved

How to make simple math calculations in java

Posted on 2011-03-17
5
504 Views
Last Modified: 2012-05-11
Hi,

How can I make simple math calculations in java like addition, subtraction?

Thanks,

0
Comment
Question by:Tolgar
  • 2
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 63 total points
ID: 35158211
Such as

int i = 4 * n;

?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35158216
What do you mean by that, can you be miore specific, what is it that you want?
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 62 total points
ID: 35158284
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35158357
:)
0
 

Author Comment

by:Tolgar
ID: 35158756
It was  a silly question. Sorry.

I gave credit for your time and closed it.

Thanks,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now