The following code block while not crazy concerning at the moment, but maybe a comment as I have added to let the individual know that this is ternary operation.
String status() {
// This code may be "confusing" this is a ternary operator
// Basically another way to write an 'if / else' statement
"Controller["
+ isPoweredOn ? "ON" : "OFF" + "] - GameConsole["
+ isPoweredOn ? "ON" : "OFF" + "]";
}
The following code block while not crazy concerning at the moment, but maybe a comment as I have added to let the individual know that this is ternary operation.