you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 year ago (1 child)

I haven't looked at the code but I always assumed that println was a call to print with a new line added to the original input.
Something like this:

void print(String text) { ... }
void println(String text) { this.print(text + '\n'); }
  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    That is pretty much what it does except it doesn't hardcode \n but instead uses the proper line ending for the platform it's running on.

  • source
  • parent
  • hideshow 2 child comments