6 Replies Latest reply: Aug 14, 2009 4:31 PM by 843853 RSS

    Filtering a String for many char values.

    843853
      I have an RSS stream and I want to remove many individual char values. My test is looking like:
       
      if((c!=1) && (c!=2) && (c!=3) && (c!=4) && (c!=5) && (c!=6) && (c!=7) && (c!=8))
      where "c" is a char primitive.

      Is there a simple way to create an array/collection which can use to test for
      if(!arrayOrCollection.contains(c))
      Thanks