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:
    430
    Likes Received:
    22
    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!