Discuss / Java / caozhiquanchn@foxmail.com

caozhiquanchn@foxmail.com

Topic source

杜梅_vii

#1 Created at ... [Delete] [Delete and Lock User]
        int age = 7;
        // primary student的定义: 6~12岁
        boolean isPrimaryStudent = (age >= 6) && (age <= 12);
        System.out.println(isPrimaryStudent ? "Yes" : "No");

  • 1

Reply