Java一个简单程序结构剖析

1 public class Test 
2 {
3     public static void main(String[] args) 
4     {
5         int a=1,b=2;
6         System.out.println("Hello World! "+a+b+" "(a+b));//+在输出中作为连接符号,如果加上()表示进行运算
7     }
8 }
9 //输出结果为:Hello World! 12 3

posted @ 2020-11-18 21:53  ITKV  阅读(139)  评论(0)    收藏  举报