Java基础语法 - 输出

输出在各个开发语言中起着至关重要的作用,方便编写代码时进行调试,在java中使用 System.out.println 进行输出

1 public class Main {
2 
3     public static void main(String[] args) {
4 
5         // 使用System.out.println进行输出
6         System.out.println("Hello World");
7 
8     }
9 }

猜你喜欢

转载自www.cnblogs.com/CongZhang/p/9907151.html
今日推荐