Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.widget.EditText;

public class Main {
    /**
     * Helper method to check the minimum length required for EditText fields
     * @param min int the minimum required length for the EditText String
     * @param et EditText the field
     * @return boolean whether or not the length is below the minimum
     */
    private static boolean checkMinLength(int min, EditText et) {
        return et.getText().toString().length() <= min;
    }
}