Java String Tokens

  • [deleted]
    + 42 comments

    Thanks! This advice worked for me.

    Also, here is some example code that might help people with the split() method.

    String str = "This is an example string, right?  Yes!";
    String delims = "[ .,?!]+";
    String[] tokens = str.split(delims);