About Question enthuware.jwpv6.2.749 :

Moderator: admin

Post Reply
cengizc
Posts: 5
Joined: Fri Feb 17, 2012 4:10 pm
Contact:

About Question enthuware.jwpv6.2.749 :

Post 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.

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.749 :

Post by admin »

What if hour is = 12?

guest

Re: About Question enthuware.jwpv6.2.749 :

Post by guest »

In this option it will print good evening when it is noon. so none of the options are exactly correct

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests