Solved

How to make simple math calculations in java

Posted on 2011-03-17
5
506 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 39
HSSFWorkbook cannot be resolved error 10 72
Which non-HTML GUI front end to use with Java? 3 22
going to wrong jsp page 2 22
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

821 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