6 Replies - 2559 Views - Last Post: 29 January 2006 - 09:31 PM Rate Topic: -----

#1 fyrestorm  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

doublespace

Posted 28 January 2006 - 12:44 PM

I know that when i'm printing stuff out, if i want a new line after it i can just use

System.out.println()


what do i need to do if i want an empty line between lines of print?
Is This A Good Question/Topic? 0
  • +

Replies To: doublespace

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: doublespace

Posted 28 January 2006 - 12:52 PM

I'm probably missing something, but do you just mean a blank line between two others? You should just be able to call the method again. Sorry if I'm missing something...I probably am....
Was This Post Helpful? 0
  • +
  • -

#3 fyrestorm  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: doublespace

Posted 28 January 2006 - 01:35 PM

yes, that's right, so i would just do

System.out.println("some text");
System.out.println("");
System.out.println("some more text");



I was kindof hoping that there was a different way to accomplish this...

This post has been edited by fyrestorm: 28 January 2006 - 01:35 PM

Was This Post Helpful? 0
  • +
  • -

#4 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: doublespace

Posted 28 January 2006 - 01:50 PM

System.out.println()


by itself should insert a blank line...
Was This Post Helpful? 0
  • +
  • -

#5 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1868
  • View blog
  • Posts: 20,280
  • Joined: 17-March 01

Re: doublespace

Posted 28 January 2006 - 01:58 PM

Are you trying to programatically do a double space?

So if you've typed a paragraph it will

double space just like in word using

the paragraph format? Or are you

looking for a different way to do a blank

line between individual lines of text.

Spit it out Courtney :)
Was This Post Helpful? 0
  • +
  • -

#6 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: doublespace

Posted 28 January 2006 - 02:12 PM

You can also just enter a newline character at the end of each line of text you have...it will insert an additional blank line:
System.out.println("Some text here\n");
System.out.println("Some text here");


Was This Post Helpful? 0
  • +
  • -

#7 fyrestorm  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: doublespace

Posted 29 January 2006 - 09:31 PM

skyhawk133, on 28 Jan, 2006 - 01:55 PM, said:

Are you trying to programatically do a double space?

So if you've typed a paragraph it will

double space just like in word using

the paragraph format? Or are you

looking for a different way to do a blank

line between individual lines of text.

Spit it out Courtney :)

lol...sorry...

i'm looking for a different way to do a blank

line between individual lines of text.

but i think amadeus answered it :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1