Discuss / Java / s使用三目运算符完成

s使用三目运算符完成

Topic source

天天向上

#1 Created at ... [Delete] [Delete and Lock User]
boolean isPrimaryStudent = age>=6 ? age<=12 : false;

  • 1

Reply