Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    2,330

    Re: StringIndexOutOfBounceException

    :P The performance difference here is negligible. However, yes. Exceptions are generally bad practice (like goto's, though exceptions are slightly more useful and not quite as bad programming...
  2. Replies
    7
    Views
    2,330

    Re: StringIndexOutOfBounceException

    ... If you want to check for a negative number, just use parseInt(), and catch the exception.


    try
    {
    if (Integer.parseInt(someStr) < 0)
    {
    ...
Results 1 to 2 of 2