5

【笔记】Java控制台输出语句

 1 year ago
source link: https://feiju12138.github.io/2022/11/06/Java%E6%8E%A7%E5%88%B6%E5%8F%B0%E8%BE%93%E5%87%BA%E8%AF%AD%E5%8F%A5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】Java控制台输出语句

2022-11-06

1

Java控制台输出语句

控制台输出正常信息

输出后换行

System.out.println();
System.out.print("\n");

输出后不换行

System.out.print();

控制台输出报错信息

输出后换行

System.err.println();
System.err.print("\n");

输出后不换行

System.out.print();

哔哩哔哩——黑马程序员


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK