Java StringTokenizer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • - Steve -

    Java StringTokenizer

    It doesn't appear that Visual Studio 2003 has the StringTokenizer class for
    a J# project. Am I missing something?

    Steve


  • Anthony Borla

    #2
    Re: Java StringTokenizer


    "- Steve -" <sevans@foundat ion.sdsu.edu> wrote in message
    news:OseAb.1044 3$LV1.542@okepr ead05...[color=blue]
    >
    > It doesn't appear that Visual Studio 2003 has the
    > StringTokenizer class for a J# project. Am I missing
    > something?
    >[/color]

    Maybe they renamed it to 'CStringTokeniz er' ;) !

    Cheers,

    Anthony Borla

    P.S.

    I'm not sure that J# could be classed as Java - probably best stick to the
    J2SDK since you *know* it works !


    Comment

    • Mitch

      #3
      Re: Java StringTokenizer

      Use an array instead:

      String[] strArray = "this is a test".split("\\ s");

      Now pour over the array to pick up the tokens.

      Good luck,
      -Mitch

      "- Steve -" <sevans@foundat ion.sdsu.edu> wrote in
      news:OseAb.1044 3$LV1.542@okepr ead05:
      [color=blue]
      > It doesn't appear that Visual Studio 2003 has the StringTokenizer
      > class for a J# project. Am I missing something?
      >
      > Steve
      >
      >[/color]

      Comment

      • wing

        #4
        Re: Java StringTokenizer

        >[color=blue]
        > String[] strArray = "this is a test".split("\\ s");
        >
        > Now pour over the array to pick up the tokens.[/color]

        That's MS trick to switch user from the way they act.

        It plays the game for Lotus, WorkPerfect and now it plays the same
        trick to Java Developer.

        Wing

        Comment

        Working...