Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.text.TextUtils;

public class Main {
    public static String unquote(String s, String quote) {
        if (!TextUtils.isEmpty(s) && !TextUtils.isEmpty(quote)) {
            if (s.startsWith(quote) && s.endsWith(quote)) {
                return s.substring(1, s.length() - quote.length());
            }
        }
        return s;
    }
}