System.out.println("The non pure blood Horses over 2 years old are: ");
if(!pureBlood == false)
{
System.out.printf("name= %s\nage= %d\nheight= %s\ncolor= %s\n",
this.name, this.age, this.height, this.color);
}
When I compile it I get errors like this
non-static variable this cannot be referenced from a static context
System.out.printf("name= %s\nage= %d\nheight= %s\ncolor= %s\n", this.name, this.age, this.height, this.color);"