// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.math.*;

public class ByteArray_BigInteger_ByteArray {
   public static void main(String[] args) {
      String s = "abc123";
      byte[] ba = s.getBytes();
      BigInteger bi = new BigInteger(ba);
      byte[] ba2 = bi.toByteArray();
      String s2 = new String(ba2);
        System.out.println(s2);
   }
}
