title: How can i split string in java using combine special characters
body: <p>How can I split a <code>String</code> using combine special characters?</p>
  
  <p>For example, if the combine Special characters is <code>{@}</code>:</p>
  
  <pre><code>String str = "This is test string1.{@}This is test string2@(#*$ ((@@{}";
  StringTokenizer stoken = new StringTokenizer(str, "\\{\\@\\}");
  while (stoken.hasMoreElements()) {
      System.out.println(stoken.nextElement());
  }
  </code></pre>
  
  <p>What I expect from above program is :</p>
  
  <pre><code>This is test string1.
  This is test string2@(#*$ ((@@{}
  </code></pre>