Array
eg; String[] names={"Jason ","Chris","Tina","Lisa"}; How do i declare a method that will remove from the name Chris from the Array. Then once you removed the name, how do i declare another method displaying the length of the array now that a name has been removed? For the removing of the name, heres my code(its running but no output); public void Remove(String[]Array){ int i=0; while(Array[i].equals("chris")){ Array[i]=null; System.out.println(Array) public static void main(String[]args){ Question4 Remove1=new Question4(); Remove1.Remove(names); } The idea behind my method is that the loop goes through the array until it finds the name "chris". Then once it finds the name, it sets it to null(deleting it).