• Scoopta@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

    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.

    • uranibaba@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I haven’t worked with java for a couple of months now, currently working in Delphi, so could not remember the how else to do new line except backslash n on top of my head. :-)