Write EmailParts: read an email address (one line), trim it and convert it to lower case, then print the user name, the domain, the extension (after the last dot), a masked version and whether it ends with wku.edu.cn:
Email: lina.chen@wku.edu.cn
User: lina.chen
Domain: wku.edu.cn
Extension: cn
Masked: l***@wku.edu.cn
Student address: true
Use indexOf, lastIndexOf, substring, charAt and endsWith.