Hello, I need help with this exercise, I can't pass the test, this is the code, if someone tells me what I'm doing wrong I would appreciate it.
public static boolean canFreePrisoner(boolean knightIsAwake, boolean archerIsAwake, boolean prisonerIsAwake, boolean petDogIsPresent) {
if ((!knightIsAwake !archerIsAwake !prisonerIsAwake) && petDogIsPresent) {
return true;
} else {
return false;
}
}