网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Youarebuildingadatingwebsite.Theclient’sdateofbirthiscollectedalongwithlotsofotherinformation.ThePersonclasshasaderivedmethod,getAge():int,whichreturnstheperson’sagecalculatedfromthedateofbirthandtoday’sdate.InoneofyourJSPsyouneedtoprintaspecialmessagetoclientswithintheagegroupof25through35.WhichtwoELcodesnippetswillreturntrueforthiscondition?()

A.${client.agein[25,35]}

B.${client.agebetween[25,35]}

C.${client.agebetween25and35}

D.${client.age<=35&&client.age>=25}

E.${client.agele35andclient.agege25}


参考答案

更多 “ Youarebuildingadatingwebsite.Theclient’sdateofbirthiscollectedalongwithlotsofotherinformation.ThePersonclasshasaderivedmethod,getAge():int,whichreturnstheperson’sagecalculatedfromthedateofbirthandtoday’sdate.InoneofyourJSPsyouneedtoprintaspecialmessagetoclientswithintheagegroupof25through35.WhichtwoELcodesnippetswillreturntrueforthiscondition?()A.${client.agein[25,35]}B.${client.agebetween[25,35]}C.${client.agebetween25and35}D.${client.age=35client.age=25}E.${client.agele35andclient.agege25} ” 相关考题