without using arthematic operation ,how can you write the
logic for adding/substraction/multiplication?
Answer Posted / ashwinkumar
int a = 10;
int b = 5;
int sum = BigInteger.valueOf(a).add(BigInteger.valueOf(b)).intValue();
int sum1 = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)).intValue();
int sum2 = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)).intValue();
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Will minecraft java be discontinued?
what is mena by object block any what is the use of that
What are scalar data types?
What is class forname?
Are functions objects in java?
What about features of local inner class?
What is the difference between a choice and a list?
What is boolean logic?
What is a null check?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
explain copyonwritearraylist and when do we use copyonwritearraylist?
How do you use find and replace?
What is ide with example?
Why do we use variables?
Where is singleton pattern used?