title: How to replace a Date that I add to an ArrayList
body: <pre><code>ArrayList member = new ArrayList();
  
  member.add(new Member("V0001","Amy","0000-0000-0000","012-3456789","01-01-2014","01-01-   2015"));
  
  private String memberId=V0001;
  private String memberName=Amy;
  private String icNo = 0000-0000-0000;
  private String hpNo = 012-3456789;
  private String joiningDate = 01-01-2014;
  private String expiredDate = 01-01-2015;
  System.out.printf("\nEnter New Expired Date: ");
  String expiredDate =inputS12.nextLine();
  
  member.get(inputS12).set(6,"expiredDate"); // This is the problem
  </code></pre>
  
  <p>The problem now is, I can enter the new expired date which is ("01-01-2016") that I want, but the new expired date did not change to 01-01-2016, it still remains 01-01-2015.</p>
  
  <p>Can anyone help me solve this problem?</p>