Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static byte[] arrayApend(byte[] prep, byte after) {
        byte[] result = new byte[prep.length + 1];
        System.arraycopy(prep, 0, result, 0, prep.length);
        result[prep.length] = after;
        return result;
    }

    public static byte[] arraycopy(byte[] from, byte[] to) {
        System.arraycopy(from, 0, to, 0, from.length);
        return to;
    }
}