Programming Code Center(PCC)
[JAVA]

(PCC)::[how-to-write-Java-Program-to-Add-Two-Integers-with-output]::[java]

File Name : AddTwoIntegers.java

public class AddTwoIntegers {

    public static void main(String[] args) {
        
        int first = 10;
        int second = 20;

        int sum = first + second;

        System.out.println("The sum is: " + sum);
    }
}

Output :

AddTwoIntegers.jpg