Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert int data into BigInteger data in JAVA
How to convert int data into BigInteger data in JAVA
1, create a java class, TestBigInteger.java;

2. write java code;

Public class TestBigInteger {

Public static void main(String[] args) {

big integer bint = new big integer(string . value of( 123));

}

}

3. Write the output result code;

system . out . println(bint);

system . out . println(bint . getclass());

4, the execution result, the type is' classjava.math.biginteger';