Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.util.Base64;

public class Main {
    static public String encodeToString(String code) {
        if (code == null || code.length() == 0) {
            return "";
        }
        return Base64.encodeToString(code.getBytes(), Base64.NO_WRAP);
    }
}