method for an arraylist java
I am new to arraylist in java.  I have several lists , and I wanna write a method for removing a list with its elements. Here what I got so far:

    public void delete(double value){
	list.remove(value);
	}

   After that I want get the output
Here what I have
	 

    public ArrayList<Double> getlist(){
		return list;
	}

  

method for an arraylist java
===

I am new to arraylist in java.  I have several lists , and I wanna write a method for removing a list with its elements. Here what I got so far:

    public void delete(double value){
	list.remove(value);
	}

   After that I want get the output
Here what I have
	 

    public ArrayList<Double> getlist(){
		return list;
	}

  
