What error are you getting?
--- Juan <[EMAIL PROTECTED]> wrote:
> 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]>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>