Java Playground - ternary conditional problem: Online Interpreter, Compiler & Editor | Sololearn