1 2 Previous Next 15 Replies Latest reply: Oct 29, 2007 5:17 AM by 807603 RSS

    In Java, is it possible to check string startsWith with a List?

      Hi All,

      for example i am having a string called "ONE". I'm having a list which has "ONE", "TWO", "THREE", "FOUR" etc.,

      Now i want to check whether "ONE" is startsWith any one the string specified in the java.util.List.

      In my case, it has to return true if "ONE" is given. if i give "NINE" it has to return false.

      How can i achieve this in Java?

        1 2 Previous Next