how can i do this using arraylist or array? : i am trying to add some string names to stars arraylist using addStar function in Star class. 
but i m encountering error like this;
*The method add(Star) in the type arraylist<star> is not applicable for this arguments.* 
eclipse says to me the string parameter is not acceptable, so how can i do this?

> import java.util.ArrayList; import java.util.Collection;
> 
> public class Star { public static String name; public static
> ArrayList<Star> stars=new ArrayList<>();
> 
> 
> public Star(String name) { 	this.name=name; 	}
> 
> public static void addStar(String name) { 	stars.add(name);
> 
> }

}




		
	
	





