Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.List;

public class Main {
    public static byte[] fromByteArray(List<Byte> byteArray) {
        byte[] rval = new byte[byteArray.size()];
        for (int i = 0; i < byteArray.size(); i++) {
            rval[i] = byteArray.get(i);
        }
        return rval;
    }
}