Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static ArrayList<Byte> asArrayList(byte[] showtext2) { ArrayList<Byte> list = new ArrayList<Byte>(); for (int i = 0; i < showtext2.length; i++) { list.add(showtext2[i]); } return list; } }