I need to determine if a username in the form of an email ([email protected]) is in the correct form. The necessary parameters for the username being correct are as follows:
- there is something before the @ symbol
- there is text between the @ symbol and the ".com"
- the username ends in .com
These are the only parameters, if they are met the method will return true and if they are all not met it will return false.