📜  在java代码示例中添加两个数字

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

代码示例1
public class AddTwoNumber
{
   public static void main(String[] args)
   {   
      int number1 = 12;
      int number2 = 3;
      int sum = number1 + number2;

      System.out.println("Sum of "+number1+" and "+"number2 is : "+sum);
   }
}