Skip to content

hugonzb/EmailAddress-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Clone the repository: https://github.com/hugonzb/EmailAddress-Checker.git

Compile: javac EmailAddresses.java
Run: java EmailAddresses

After running, type input and press enter for each new line required. When all input has been typed, press ctrl-d (when on windows terminal or drjava) or ctrl-z (when on MacOS) to submit the input.

Example Test cases:

hello@@gmail.com
123.123@[123.123.123.123]
hello.word@gmail.co.nz
hello@word@.co.nz
hello@[255.256.]
hello@[325.255.1.0]
hello@[...]

@.co.nz
@@hello.co.nz
%^$#^$@gmail.com
email@gmailco.us
hello@_dot__dot_co.nz
.hello@gmail.com
hugo_at_home_at_gmail_dot_com

a_$b@cs.com 
a__b@lol.com 
a--b@cs.com 
adsad.sdadsa@lol.com
a-b-c-d@l.com
ab_-l@a.com 
la@l.com_
a_@l.com 
123@123.com
123_123@lolc.com
a-$a@s.com
a_l@[123.123.123.123]
la.a@l.co.co.co.nz
mailbox@a.co.nz
mailbox@cs.co.us
mailbox@l.co.us
mail_box@domain.com
email_l@ex.l.com
hugo@[1.2.3.4].com
hugo@h.com[1.2.3.4]
hugo@extra.[1.2.3.4]

About

This is a Java program that takes email addresses as input and points out which emails are invalid and specifically why (e.g. missing '@' sign). This was a solo etude for COSC326, but can be used as a general function for checking a collection of email addresses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages