title: How do i remove an array entry in java(be simplistic please?)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/112503/how-do-i-remove-objects-from-an-array-in-java">How do I remove objects from an Array in java?</a>  </p>
  </blockquote>
  
  
  
  <p>Basicly, this is my code(a Adress book) i used an arrow to point out the bits of code that are about the remove array(So far) i just need some dire help, im a school student and help would be lovely....</p>
  
  <p>Edit 1; Sorry im new to the site, my problem is, i need to remove an entry from an array, this is my remove method. I have a search method(works fine) its just my removing protocol does not work, What i want to do is remove the chosen entry(name[],homeNum[],cellNum[],) which is those 3 array, and im using the clone of those arrays, to delete it, and i need it in a shorter array(0-3, instead of 0-4), nothing fancy, i just need some collective critism, and i know nothing of java lists....</p>
  
  <pre><code>/*----&gt;*/ public static void Remv(String cloneName[],String cloneHomeNum[],String cloneCellNum[]){
      int k=0,x;
      String username="";
      String name[]=new String[5];
      String homeNum[]=new String[5];
      String cellNum[]=new String[5];
      x=Searching(name,username);
      for(int j=0;j&lt;5;j++){
          if(j!=x){
              cloneName[j]=name[j];
              cloneHomeNum[j]=homeNum[j];
              cloneCellNum[j]=cellNum[j];
              k=k+1;
          }else if(j==x)
          cloneName[k]=name[j];
          cloneHomeNum[k]=homeNum[j];
          cloneCellNum[k]=cellNum[j];
  
  
      }
   }
  }
  </code></pre>