// Split email on a literal dot .split(".")
String[] splittedEmail = email.split(".");
// Example
String email = "ola.nordmann@online.no";
for (int i = 0; i < splittedEmail.length; i++) {
System.out.println(splittedEmail[i]);
}
// Will print
ola
nordmann@online
no