1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to use tokens with my app

Discussion in 'General Programming Chat' started by xpro, Mar 4, 2010.

  1. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    Hello

    I'm trying to make my strings change randomly. Here is an example

    String s = "(Hi|Hello), I would (love|like) to (meet|see) you";

    How can I do this in a clean way in Java?

    Best Regards!