Page 1 of 1

About Question enthuware.jwpv6.2.749 :

Posted: Thu Mar 22, 2012 10:58 am
by cengizc
Both

Code: Select all

<c:choose>
 <c:when test="${hour < 12}">
	<c:out value="Good Morning" />
  </c:when>
  <c:when test="${hour > 12}">
	<c:out value="Good Evening" />
  </c:when>
</c:choose>
and

Code: Select all

<c:choose>
  <c:when test="${hour < 12}">
	<c:out value="Good Morning" />
  </c:when>
  <c:otherwise>
	<c:out value="Good Evening" />
  </c:otherwise>
</c:choose>
works as asked.

However, question is single choice only.

Re: About Question enthuware.jwpv6.2.749 :

Posted: Thu Mar 22, 2012 1:01 pm
by admin
What if hour is = 12?

Re: About Question enthuware.jwpv6.2.749 :

Posted: Sat Jun 30, 2012 6:18 pm
by guest
In this option it will print good evening when it is noon. so none of the options are exactly correct