I'm trying to write if condition that checks whether an email address entered from user is valid email.
How can I write it?
Please, I want a simple way and not complicated
my method is
  public void setStudentEMail(String StudentEMail)
{
     this.StudentEMail=StudentEMail;    
}
 
  public String getStudentEMail()
{
    return this.StudentEMail;
}
 
     
     
    