We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2758e87 commit 3fcd04dCopy full SHA for 3fcd04d
1 file changed
source/ch4_conditionals.ptx
@@ -447,7 +447,7 @@ public class Ternary {
447
448
// ternary:
449
outp = (a % 2 == 0) ? (a * a) : (3 * x - 1);
450
- System.out.println("Result: " + outp);
+ System.out.println("ternary result: " + outp);
451
452
// Equivalent using if/else
453
if (a % 2 == 0) {
@@ -456,7 +456,7 @@ public class Ternary {
456
outp = 3 * x - 1;
457
}
458
459
+ System.out.println("if/else result: " + outp);
460
461
462
</code>
0 commit comments