8 Replies Latest reply on Jun 19, 2005 6:53 AM by 807597

    Simple substring problem

    807597
      How the hell am I getting a StringIndexOutOfBoundsException here:

      sq = sq.substring( "+CSQ: ".length() );

      sq = "+CSQ: 27,99" when this piece of code is executed. Exception is:

      String index out of range: -6