String Arraylist get the item starting with this string

后端 未结 5 1700
长情又很酷
长情又很酷 2021-02-09 15:35

I have a array list in which I bind the data This is a example

MyStrings =new ArrayList();
MyStrings.add(\"Dog\");
MyStrings.add(\"Cat\");
MyString         


        
5条回答
  •  一整个雨季
    2021-02-09 16:18

    List MyStrings =new ArrayList();
    List MySortStrings =new ArrayList();
    MyStrings.add("Dog");
    MyStrings.add("Cat");
    MyStrings.add("Can");
    MyStrings.add("Ant");
    MyStrings.add("Str");
    String sweet="c";
    for(int i=0;i

    The list MySortStrings contains the Cat & Can

提交回复
热议问题