1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

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:
    431
    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!