Skip to content

Commit 4503922

Browse files
committed
added xml:id to table
1 parent fbb435e commit 4503922

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/ch4_conditionals.ptx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ The conditionals used in the if statement can be <term>Boolean variables</term>,
416416
</p>
417417

418418
<p><idx>ternary operator</idx>
419-
Java also provides the ternary operator <c>condition ? valueIfTrue : valueIfFalse</c>, which lets you use a <c>boolean</c> test directly inside an assignment. If the condition is true, the first value is chosen; otherwise, the second value is used. The table below summarizes how it works:
419+
Java also provides the ternary operator <c>condition ? valueIfTrue : valueIfFalse</c>, which lets you use a <c>boolean</c> test directly inside an assignment. If the condition is true, the first value is chosen; otherwise, the second value is used. <xref ref="ternary-operator-table" text="type-global"/> summarizes how it works.
420420
</p>
421421

422-
<table>
422+
<table xml:id="ternary-operator-table">
423423
<title>Ternary Operator in Java</title>
424424
<tabular>
425425
<row>

0 commit comments

Comments
 (0)