1. 用Java编写,求以下用布尔表达式怎么表示
1、这个是考and和三元表2113达式的bool result = (weight > 50 && height > 60) ? true : false;2、这个是考闰年的概念5261的,同时考1里的内容bool result = (year % 4 == 0 && year % 400 !4102= 0) || (year % 400 == 0) ? true : false;全都加上1653括号来指定计算优先版级是为了看着清楚3、这题其实权是考Math类的bool result = Math.abs(y - 6.5) > 5.5 ? true : false;。