Forum Stats

  • 3,838,512 Users
  • 2,262,378 Discussions
  • 7,900,675 Comments

Discussions

type of write versus type of append

yecril15pl
yecril15pl Member Posts: 4 Red Ribbon
edited Jun 29, 2018 3:47PM in Java Programming

Writer .write returns void while Writer .append returns Writer itself.  Why is that?  I would expect both to return Writer, so that I can write { w .write (this) .write (that); }.  What do you think?

Answers

This discussion has been closed.