Skip to content

Commit 296cd38

Browse files
authored
Merge pull request #279 from habibasorour/issue_261_table
Issue 261 fixed: added xml:id to table 4.6.1
2 parents e141814 + 4503922 commit 296cd38

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
@@ -421,10 +421,10 @@ The conditionals used in the if statement can be <term>Boolean variables</term>,
421421
</p>
422422

423423
<p><idx>ternary operator</idx>
424-
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:
424+
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.
425425
</p>
426426

427-
<table>
427+
<table xml:id="ternary-operator-table">
428428
<title>Ternary Operator in Java</title>
429429
<tabular>
430430
<row>

0 commit comments

Comments
 (0)