A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Java in General
System.out.println - Output prefixed with "[java]" - How to exclude this prefix?
Joined: Aug 09, 2010
Oct 10, 2012 17:44:28
I am writing a simple console application. When using
, it prefixes the console output with
. How can I avoid this from occurring?
System.out.println( "\n===============================" ); System.out.println( "= Hello World =" ); System.out.println( "===============================" );
[java] =============================== [java] = Hello World = [java] ===============================
Jeff in Seattle
Joined: Jul 29, 2008
Oct 10, 2012 18:21:57
Jeff Tanner wrote:
How can I avoid this from occurring?
Simply shut the IDE and get to use with javac/java commands
In other words, such lines are so prefixed with
or whatever the build script runs by your IDE.
Author of ExamLab
- a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like?
How to Ask a Question
Have you checked out
subject: System.out.println - Output prefixed with "[java]" - How to exclude this prefix?
redirect output to printer
Matching words except those in tags with regex
problem related to floats
Arithmetic Compound Assignment Operators..
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015