import java.util.Scanner;
public class Emailshuzu {
public static void main(String[] args) {
String Email = null;
Scanner scanner = new Scanner(System.in);
System.out.print("请输入Email地址 :");
Email = scanner.nextLine();
if (Email.indexOf('@') != -1 && Email.indexOf('.') > Email.indexOf('@')) {
System.out.println("邮箱地址有效");
} else {
System.out.println("邮箱地址无效");
}
}
}