Java outputting to text file?

后端 未结 5 700
悲哀的现实
悲哀的现实 2021-01-28 06:59

So I am having troubles printing to output. I understand the concept, but when it comes to this problem its kinda weird. I\'ve tried different print lines and all of them give m

5条回答
  •  一个人的身影
    2021-01-28 07:40

    To make it a new line for each output loop it and add "\n" to each line you write or you can convert to string and edit String format to whatever you want. You can add a comma if you want

    string.format()
    

提交回复
热议问题