+ 4
I think u r looking for indexOf method. String email = "email@mail.com"; System.out.println (email.indexOf('@')); output: 5 index starts from 0
2nd Apr 2017, 8:20 AM
Eranga
Eranga - avatar