I need to make a string by using a loop to a method from ohter class that is named speak(), and is seperated by a \n
the problem is in the class public String allSpeak()

/*
	public String allSpeak()
	(
		if (count = null)
		{
			 System.out.println("No Animals to Speak");
		}
		else
		{
		do
		{
			for (int i = 0; i < animals.count; i++)
			animals[i].speak();

		}

	)
*/
	public boolean immunizeAnimals()
	{
		if(count = null)
		{
			return false;
		}
		else
		{
		if(
/*
	}

	public String toString()
	{

	}
*/

}

What is th problem in the class public String allSpeak()?

Note:
In your method allSpeak, you declare it as public String so the program is assuming that somewhere in your method you WILL RETURN a String.