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 final byte[] toByteArray(final List<Byte> pItems) {
        final byte[] out = new byte[pItems.size()];
        for (int i = out.length - 1; i >= 0; i--) {
            out[i] = pItems.get(i);
        }
        return out;
    }
}