Welcome to the Ranch
line 23 should read
if (t.canRecord) {
Using == true and == false is poor style and error‑prone; what if you write = instead of == by mistake.
It would be better to have that boolean as a private field of the tape class and methods to setRecordable() and isRecordable(). Then you would write
That is equivalent to turning the deck on and off. When you start it is not recordable. like having its recording behaviour turned off. Now it has been turned on and will record.