大家好,我正在尝试为作业重新创建上面的表格,但由于有关 && 函数的错误而卡住了。请注意,我们不允许使用数组,并且仅限于“switch”和“If”
这是我到目前为止所得到的:
if ((BEAK_MM == 1) && (CLAW_MM == 0) && (COLOR = "Grey")) {
System.out.println ("The type of bird is A.");}
else if ((BEAK_MM == 2) && (CLAW_MM == 1) && (COLOR = "Grey"))
System.out.println ("The type of bird is A.");}
else if ((BEAK_MM == 3) && (CLAW_MM == 2) && (COLOR = "Grey"))
System.out.println ("The type of bird is A.");}
else if ((BEAK_MM == 4) && (CLAW_MM == 3) && (COLOR = "Grey"))
System.out.println ("The type of bird is A.");}
else if ((BEAK_MM <= 4.5) && (CLAW_MM == 4) && (COLOR = "Grey"))
System.out.println ("The type of bird is A.");}
慕的地10843
相关分类