Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.math.BigInteger;

public class Main {
    /**
     * Transforms a byte array to a
     * positive number string
     * @param in byte array
     * @return positive number string
     */
    public static String bytesToPositiveNumString(byte[] in) {
        BigInteger num = new BigInteger(1, in);
        return num.toString();
    }
}