Skip to content

Commit 3fcd04d

Browse files
committed
improve output
1 parent 2758e87 commit 3fcd04d

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
@@ -447,7 +447,7 @@ public class Ternary {
447447

448448
// ternary:
449449
outp = (a % 2 == 0) ? (a * a) : (3 * x - 1);
450-
System.out.println("Result: " + outp);
450+
System.out.println("ternary result: " + outp);
451451

452452
// Equivalent using if/else
453453
if (a % 2 == 0) {
@@ -456,7 +456,7 @@ public class Ternary {
456456
outp = 3 * x - 1;
457457
}
458458

459-
System.out.println("Result: " + outp);
459+
System.out.println("if/else result: " + outp);
460460
}
461461
}
462462
</code>

0 commit comments

Comments
 (0)