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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
ASKER
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!