[Solved] What does !type mean in this code?


Type is an instance of the String object, it has the method String#equals(...) and that method returns a boolean

!” this is the negation opeator and inverts any boolean value…

so
!type.equals("auto") is a boolean condition as result from comparing whether the String var with the name type has the value “auto” .

solved What does !type mean in this code?