+ 1
how to print the statements of a ternary operator with out "System.out.println" statement
suppose that i have a ternary operator like (age>18) ? adult ; not adult please help me !!!!!!!!!!!!!!!!!!!!!!!!
4 Respostas
+ 3
Where you want to print? Without this you can't print.
+ 2
Not possible. You need to use it.
+ 1
on the console or on the teminal
+ 1
using printwriter maybe ? idk it seems that you missing the point.
for ternary operator you usually get task line 'print this with single line' or 'only use println once' something like that.