In Java, is it possible to check string startsWith with a List?
807603Oct 29 2007 — edited Oct 29 2007Hi 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?
Thanks,
J.Kathir