From: Sami Wagiaalla <swagiaal@redhat.com>
To: Andrew Cagney <cagney@redhat.com>
Cc: frysk@sourceware.org
Subject: Re: toPrint vs toString
Date: Tue, 14 Aug 2007 17:12:00 -0000 [thread overview]
Message-ID: <46C1E262.7030104@redhat.com> (raw)
In-Reply-To: <46C1CBC3.4000308@redhat.com>
Sami Wagiaalla wrote:
>
>> public void toPrint()
>> stringWriter = new StringBuffer()
>> printWriter = new PrintWriter(stringWriter)
>> toPrint(printWriter)
>> return stringWriter.toString();
> this should be stringWriter.getBuffer().toString();
>
nm... I thought I was saving people from a trap I fell into but it looks
like it works.
my bad.
Sami
prev parent reply other threads:[~2007-08-14 17:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 15:23 Andrew Cagney
2007-08-14 15:35 ` Sami Wagiaalla
2007-08-14 16:44 ` Kris Van Hees
2007-08-14 17:12 ` Sami Wagiaalla [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46C1E262.7030104@redhat.com \
--to=swagiaal@redhat.com \
--cc=cagney@redhat.com \
--cc=frysk@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).