title: How to find the names starting with the letter entered by user?
body: <p>I have created an ArrayList to store names of customers. I then have filled the list with some names. </p>
  
  <p>Now I want to ask the user to enter a letter and then find <strong><em>all names starting with the entered letter</em></strong>
  and <strong><em>all names containing the entered letter.</em></strong></p>
  
  <p>That's where I am upto now:</p>
  
  <pre><code>    package costomersearching;
  
  import java.util.ArrayList;
  import java.util.Scanner;
  
  public class CostomerSearching {
  
      public static void main(String[] args) {
          ArrayList&lt;String&gt; customerName = new ArrayList();
          Scanner input = new Scanner(System.in);
          customerName.add("Sara");
          customerName.add("John");
          customerName.add("Miami");
          customerName.add("Mart");
          customerName.add("Alex");
  
          System.out.println("Customer List: \n" + customerName);
          System.out.println("Search Customer by letter: ");
          String letter = input.next();
          //show the name containg the letter starting as the first letter
          //Show the name containing the letetr.
      }
  
  }
  </code></pre>