Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;

public class Main {

    public static byte[] asByteList(ArrayList<Byte> list) {
        int size = list.size();
        byte[] byteList = new byte[size];
        for (int i = 0; i < size; i++) {
            byteList[i] = list.get(i);
        }
        return byteList;
    }
}