我将 a 转换String
为BigInteger
如下:
Scanner sc=new Scanner(System.in);
System.out.println("enter the message");
String msg=sc.next();
byte[] bytemsg=msg.getBytes();
BigInteger m=new BigInteger(bytemsg);
现在我想要我的弦。我正在使用m.toString()
,但这给了我想要的结果。
为什么?错误在哪里,我该怎么办?