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