2 Replies Latest reply on Mar 1, 2008 11:37 AM by 807591

    String.indexOf() and StringTokenizer()


      I have string of types a.b.c.d.e.f and I need to get either a.b.c.d or a.b.c.d.e.
      I can easily do it by removing f or e.f if I start from end.

      I can use indexOf() and StringTokenizer() but both of them start from beginning of string. I do not know how to start from end so that I can have fast speed. Any suggestions?