数字的数据类型

时间:2013-01-10 19:49:40

标签: java algebraic-data-types

如何在Java中将几何数据类型更改为String?

2 个答案:

答案 0 :(得分:3)

使用BigInteger

BigInteger bi = new BigInteger("01060000000100000...", 16);

答案 1 :(得分:2)

您可以使用BigInteger。它有一个构造函数,它将String和一个基数作为参数。

所以:

new BigInteger(theString, 16);
相关问题