Link to home
Start Free TrialLog in
Avatar of LarryAndro
LarryAndro

asked on

Eclipse Java System.out.println & Leading Spaces

I am using the Eclipse IDE.  In a Java class, when I print...

   System.out.println("                               IMPORTANT!!");

the leading spaces in the output to the console are stripped.  (This does not happen when a Java class' System.out.println output is executed from the command prompt.)

There must be a setting or parameter that controls how leading spaces are handled.  Can anyone help me?
ASKER CERTIFIED SOLUTION
Avatar of marklorenz
marklorenz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LarryAndro
LarryAndro

ASKER

My output is going to the "regular console."  Knowing you are using Eclipse, and that the spaces are not stripped, is useful information.  It doesn't answer my question, but lets me know that the problem is likely local to my machine.  

I will wait for input from others.  Then, I'll give you the points, or split points.  And, thanks for taking time to run my line of code!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am using JDK 1.4.2, and I installed separately from Eclipse.  This is a nuisance, but not something I am going to spend a lot of time on.  I appreciate your brainstorming...
I'm on 1.5, but that shouldn't matter... These types of things usually end up being something small and easily overlooked.