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 {
    /**
     * <p>
     * Converts a 8 byte long byte array into a long value
     * </p>
     * 
     * @param b
     *            the 8 byte array containing the bits of the long value
     * @return the converted long object
     */
    public static long byte2long(byte[] b) {
        return new BigInteger(b).longValue();
    }
}