int grade = input.nextInt(); boolean checkbox; checkbox = grade > 60 ? "passed" : "failed";报错:Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - 不兼容的类型: 条件表达式中的类型错误 java.lang.String无法转换为boolean
感谢感谢