Logo

Programming-Idioms

History of Idiom 59 > diff from v1 to v2

Edit summary for version 2 by :

Version 1

2015-04-14, 20:58:24

Version 2

2015-04-14, 21:00:34

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(x + " is negative");
Demo URL
https://ideone.com/aiFVno