Answers for "java check long number is larger"

0

larger number in java than long

BigInteger reallyBig = new BigInteger("1234567890123456890");
BigInteger notSoBig = new BigInteger("2743561234");
reallyBig = reallyBig.add(notSoBig);
Posted by: Guest on April-20-2021
0

check if short int or long java

if(x == (short)x)System.out.println("* short");
if(x == (int)x)System.out.println("* int");
if(x == (long)x)System.out.println("* long");
Posted by: Guest on May-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language