Hello. I am having trouble with coding colours. Here is my code. Does anyone know how to fix this error. The error is "incompatible types: Greenfoot.Color cannot be converted to java.lang.Classes<?>"
public boolean hitWalls() { if (isTouching(Color.BLACK)) { return true; } else { return false; } }