[CD] Markup the Java code listed in Fig. 5.12 using XML. Represent the if statement with element if—which contains one or more condition elements and one or more statement elements. Element condition contains the condition (e.g., m == month && d == day) and element statement contains the statements (e.g., resultDay = "DATE: D " + d + " M " + m). We have provided comments to the right of conditions and statements for easy identification. Element else represents an else statement in Java and contains one or more statement elements. Render the XML document in IE5.
Fig 5.12
```
if ( ( m == month && d == day ) || // m == month && d == day
( month == -1 && d == day ) || // month == -1 && d == day
( m == month && day == -1 ) || // m == month && day == -1
( month > -1 && day <= -1 ) ) { // month > -1 && day <= -1
resultDay = "DATE: D " + d + " M " + m; // a statement
processChildNodes(dateElement.getChildNodes());// a statement
}
else // else statement
return; // a statement
```
```
m == month && d == day
||
month == -1 && d == day
||
m == month && day == -1
||
month > -1 && day <= -1
resultDay = "DATE: D " + d + " M " + m ;
processChildNodes( dateElement.getChildNodes() );
return;
```
You might also like to view...
What are the benefits of PoE+?
What will be an ideal response?
What is the most common relationship type?
A) One-to-one B) Many-to-many C) One-to-many D) None-to-none (finds records with no matching primary and foreign keys)
As new tables, queries, forms, and reports are added to a database, Access actually becomes more efficient and the performance of the database increases.
Answer the following statement true (T) or false (F)
Today's information security management programs are primarily concerned with firewalls and passwords.
a. true b. false