📜  在 java 代码示例中添加 2 个变量

📅  最后修改于: 2022-03-11 14:52:31.013000             🧑  作者: Mango

代码示例2
public class sum{
    Public static void main(String args[]){
        int x=5;
          int y=10;
          int sum= x+y;
      System.out.println("addition of x and y= "+sum);
    }
}