Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.util.Base64;

public class Main {
    /**
     * Converts byte array to String
     * @param arr - The array to be encoded
     * @return - The returned String
     */
    public static String encode(byte[] arr) {
        return Base64.encodeToString(arr, Base64.DEFAULT);
    }
}