Solved

How to make simple math calculations in java

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
endX challenge 2 50
Java asynchronous logging 4 35
recursion example 16 71
HSSFWorkbook cannot be resolved error 10 23
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
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:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

744 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

15 Experts available now in Live!

Get 1:1 Help Now