最新回答 / qq_陌颜夕
W=1的情况下,由于你定义的month是int类型(也就是整数型),因此,在W=1的情况下,mounth=w/4;mounth取值为0,而不是0.25,只有在你mounth定义为double(双精度浮点数,也可以理解成显示小数的类型,当然这里的小数说法不准确)类型的时候,mounth才会显示为0.25,可是并没有0.25月的说法,所以mounth只能定义为int类型。但是W=1表示的是第一个周,属于第一个月,而上面我们month=w/4中mounth的取值为0,所以,在周数(W)不能被4整除的情况下,月度...
2020-10-10
最新回答 / Chris丨
public class HelloWorld { public static void main(String[] args) { int[] nums =new int[]{61,23,4,74,13,148,20}; int max = nums[0]; int min = nums[0]; } }
2020-10-03