2 Replies Latest reply: Mar 1, 2008 5:37 AM by 807591 RSS

    String.indexOf() and StringTokenizer()

    807591
      Hi,

      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?

      .