This piece of code don't work if the '@' is not found:

      String em = usuario.getEmail();
      int p = em.indexOf('@');
      out.println(Integer.toString(p));

if the '@' is within the string, it works well. Why?

Thanks in advance,

Juan José Velázquez Garcia
Web Development
www.htmlspider.com.br



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to