Skip to content

Commit b469353

Browse files
committed
add listing to text
1 parent 6909dcf commit b469353

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/ch4_conditionals.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ Java also provides the ternary operator <c>condition ? valueIfTrue : valueIfFals
458458
</table>
459459

460460
<p>
461-
Using this operator can make code shorter and more readable in cases where a simple conditional assignment is needed. See the following as an example where we see the same logic implemented in two different ways.
461+
Using this operator can make code shorter and more readable in cases where a simple conditional assignment is needed. <xref ref="java-ternary" text="type-global"/> shows an example where we see the same logic implemented in two different ways.
462462
</p>
463463
<listing xml:id="java-ternary">
464464
<program interactive="activecode" language ="java">

0 commit comments

Comments
 (0)