在println的参数里面怎么换行的?快捷键是多少?

来源:4-5 学生选课---添加课程 Ⅱ

洗头最爱用飘柔

2016-10-17 19:03

在println的参数里面怎么换行的?快捷键是多少?

写回答 关注

2回答

  • 慕盖茨9781818
    2016-10-17 19:55:14
    已采纳

    \n

    System.out.println("Hello \n World"); World就转到第二行了

    洗头最爱用飘...

    非常感谢!

    2016-10-17 20:21:27

    共 6 条回复 >

  • NuRum
    2017-03-01 19:59:31

    \n

    System.err.println("Hello \n World"); World就转到第二行了


Java入门第三季

Java中你必须懂得常用技能,不容错过的精彩,快来加入吧

409764 学习 · 4543 问题

查看课程

相似问题