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 boolean verifyLen(CharSequence s, int minLen) {
        if (s != null && !isEmpty(s.toString()) && s.toString().length() >= minLen) {
            return true;
        }
        return false;
    }

    public static boolean isEmpty(String text) {
        if (TextUtils.isEmpty(text)) {
            return true;
        }
        return false;
    }
}