Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25178

Re: BlueJ Coding Help

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail
From Jukka Lahtinen <jtfjdehf@hotmail.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: BlueJ Coding Help
Organization N/A
References <87e3fd5b-cd93-4c50-bef4-05d9cf49ab0f@googlegroups.com>
X-no-archive yes
Content-Transfer-Encoding 8bit
Message-ID <lveh9a2whi.fsf@saunalahti.fi> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock sha1:0NG4pfHKb/NDaLGX0//Xb1OQwso=
MIME-Version 1.0
Content-Type text/plain
Lines 17
Date Sat, 31 Aug 2013 09:41:13 +0300
NNTP-Posting-Host 91.155.88.191
X-Complaints-To newsmaster@saunalahti.com
X-Trace uutiset.elisa.fi 1377931274 91.155.88.191 (Sat, 31 Aug 2013 09:41:14 EEST)
NNTP-Posting-Date Sat, 31 Aug 2013 09:41:14 EEST
Xref csiph.com comp.lang.java.programmer:25178

Show key headers only | View raw


Marcelo Rodriguez <mrodvicente@gmail.com> writes:

> System.out.println("From: Bill Smith\n");

That way you'll end up with double line breaks between linies.
The method System.out.println always adds a linefeed at the end of the
output, and you add one yourself with the \n.

> I am not quite sure if this is the correct format to start with or where
> exactly the "\n" goes or if I need it at all or if I need the "ln" after
> "print".

If you don't want double line breaks, either remove the \n or replace
the pirntln method with print.

-- 
Jukka Lahtinen

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

BlueJ Coding Help Marcelo Rodriguez <mrodvicente@gmail.com> - 2013-08-30 17:30 -0700
  Re: BlueJ Coding Help Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-08-31 09:41 +0300
    Re: BlueJ Coding Help Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-08-31 11:26 -0400
    Re: BlueJ Coding Help Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-08-31 18:30 +0300
      Re: BlueJ Coding Help Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-09-01 02:20 +0200
        Re: BlueJ Coding Help Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-09-01 12:05 +0300
          Re: BlueJ Coding Help Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-09-01 15:47 +0200
            Re: BlueJ Coding Help Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 18:35 -0400
              Re: BlueJ Coding Help Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-09-02 13:53 +0200

csiph-web