public class testemail{ public static void main(String args[]) { String smail=args[0]; boolean b=false,b1=false,b2=false; int point=smail.indexOf("@"); int point1=smail.indexOf("."); if ((point1-point)>1&&point>0&&point1>0) {