Email validation in java without regular expression. The requirements of this exercise is: Via the cons.