Java tutorial
//package com.java2s; import android.support.annotation.NonNull; import android.util.Patterns; public class Main { public static boolean isValidEmail(@NonNull String email) { return Patterns.EMAIL_ADDRESS.matcher(email).matches(); } }