Java Programming

Arnold LAW
Arnold LAW used Ask the Experts™
on
How to create a blank space between two lines (or statements) in Java.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Pawan KumarDatabase Expert
Awarded 2016
Top Expert 2016
Commented:
What is your requirement, can you give an example?
To create a space between a character or a word you could insert “ “ into the String or append it. To achieve a new line, use println() or print the newline character, \n.
Are you talking about case like this,

String value = "First Line" +

                "Second Line" +

                "third line";
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

awking00Information Technology Specialist
Commented:
System.out.println("line1\n\nline2\n\nline3\n\n") will produce this -
line1

line2

line3
awking00Information Technology Specialist
Commented:
Can you provide us with examples of your statements and how you want them to appear or want them changed or whatever? We need a little more detail to ascertain what you want to be accomplished.
Closing the question due to inactivity

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial