Addition of two numbers without using operators in java?

1 answer

Answer

1124265

2026-08-17 17:10

+ Follow

I don't think this can be done. Why do you want to do it without operators, anyway? It is fairly simple to use them. - Of course, you could write a method that adds two numbers, but your method will internally still have to use operators.

-----------------------------------------

Reply by lordstriker24@Yahoo.com

Java
Java

import Java.math.BigInteger;

public class MultiplyTest {

public static void main(String[] args) {

BigInteger bigInt1 = new BigInteger("5");

BigInteger bigInt2 = new BigInteger("8");

System.out.println(bigInt1.add(bigInt2));

}

}

ReportLike(0ShareFavorite

Related Questions

Copyright © 2026 eLLeNow.com All Rights Reserved.