add two numbers in java

Solutions on MaxInterview for add two numbers in java by the best coders in the world

showing results for - "add two numbers in java"
Leila
13 Nov 2018
1public class AddTwoNumber
2{
3   public static void main(String[] args)
4   {   
5      int number1 = 12;
6      int number2 = 3;
7      int sum = number1 + number2;
8
9      System.out.println("Sum of "+number1+" and "+"number2 is : "+sum);
10   }
11}
similar questions
queries leading to this page
add two numbers in java