Java: Convert Integer to BigInteger

You can convert a int to a BigInteger with the valueOf method:

int i = 100;
BigInteger bigInt = BigInteger.valueOf(i);

Werbung



comments powered by Disqus

Copyright Dunkel & Iwer GbR | Datenschutzerklärung | Impressum