title: How to convert BigInteger to String in java
body: <p>I converted a <code>String</code> to <code>BigInteger</code> as follows:</p>
  
  <pre><code>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); 
  </code></pre>
  
  <p>Now I want my string back. I'm using <code>m.toString()</code> but that's giving me the desired result.</p>
  
  <p>Why? Where is the bug and what can I do about it?</p>