Logo

Programming-Idioms

History of Idiom 59 > diff from v41 to v42

Edit summary for version 42 by shaneorama:
New Scala implementation by user [shaneorama]

Version 41

2019-09-26, 14:25:48

Version 42

2019-09-26, 14:47:55

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Code
System.err.println(s"$x is negative")