Here are two very simple classes I made:

***********************************************************

public class Animal{

private String type;

public Animal(String aType){
type = aType;
}

public String toSring(){
return "This is a " + type;
}

}

**************************************************************

public class Test {

public static void main (String[]args) {

Animal aAnimal = new Animal("An Animal");
System.out.println(aAnimal.toString());

}
}

****************************************************************

When I compile and run I get: Animal@&$*&@ and not "An Animal" how come?