Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.util.Patterns;

public class Main {
    /**
     * This method tells if the given email address is valid.</br>
     *
     * @param email the address to validate
     * @return a {@code boolean} which indicates if the email is valid or not
     */
    public static boolean isEmailValid(final String email) {
        return Patterns.EMAIL_ADDRESS.matcher(email).matches();
    }
}