Logo

Programming-Idioms

History of Idiom 59 > diff from v9 to v10

Edit summary for version 10 by :

Version 9

2015-08-20, 11:03:26

Version 10

2015-08-20, 11:03:38

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.format("%d is negative",x);
Code
System.err.format("%d is negative\n",x);
Demo URL
https://ideone.com/aiFVno
Demo URL
https://ideone.com/aiFVno