title: String Arraylist get the item starting with this string
body: <p>I have a array list in which I bind the data
  This is a example</p>
  
  <pre><code>MyStrings =new ArrayList&lt;String&gt;();
  MyStrings.add("Dog");
  MyStrings.add("Cat");
  MyStrings.add("Can");
  MyStrings.add("Ant");
  MyStrings.add("Str");
  </code></pre>
  
  <p>Now I have a string <code>String sweet="c";</code>
  Now what OI want is to filter that Arraylist based on my string(sweet)
  so the items of the MyStrings will be only Cat and Can</p>
  
  <p><strong>EDIT</strong>
  I am really sorry for the trouble I got you but my main problem is that sweet is a editable
  Ive tried using this code</p>
  
  <pre><code>      public void onTextChanged(CharSequence s, int start, int before,int count) {  
          //adapter2.getFilter().filter(s);
          //int length = filterEditText.getText().length();
          filterME  = filterEditText.getText();
          List&lt;String&gt; MySortStrings =new ArrayList&lt;String&gt;();
          for(int i=0;i&lt;MyStrings.size();i++)
          {
              String newString = MyStrings.get(i);
              if (newString.startsWith(filterME)){
  
              }
          }
          //adapter2 = new LazyAdapterGetFriends(MyFriends.this,x);
           //list.setAdapter(adapter2);
      }
  </code></pre>
  
  <p>using this declaration</p>
  
  <pre><code>    LazyAdapterGetFriends adapter2;
  ArrayList&lt;String&gt; MyStrings;
  //List&lt;String&gt; MyStrings;
  EditText filterEditText;
  </code></pre>
  
  <p>Sorry for my wrong question..
  Foolish me</p>