title: String index of Difference between two Strings
body: <p>I have two String Lists just like below:</p>
  
  <p>List1 (Generated by sql resultset)</p>
  
  <pre><code>10001
  10100
  10001
  </code></pre>
  
  <p>List2 (Generated by sql resultset)</p>
  
  <pre><code>10000
  10000
  10000
  </code></pre>
  
  <p>Button Action;</p>
  
  <pre><code>private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
          try {
              // TODO add your handling code here:
              createList1();
              createList2();
              difference();
          } catch (Exception ex) {
              Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);
          }       
      }    
  </code></pre>
  
  <p>difference void;</p>
  
  <pre><code>public void difference (){
         int minLen = Math.min(List1.get(0).length(), List2.get(0).length());
          for (int i = -1 ; i != minLen ; i++) {
            char chA = List1.get(0).charAt(i);
            char chB = List2.get(0).charAt(i);
          if (chA != chB) {
          System.out.println(chA);
          }
         }  
      }
  </code></pre>
  
  <p>I want to find which index numbers are different in List1 for index 0. </p>
  
  <p>Thanks in advance.</p>