Addition program in Java

Java program to add two numbers :- Given below is the code of java program that adds two numbers which are entered by the user.
import java.util.Scanner;
class AddNumbers
   public static void main(String args[])
      int x, y, z;
      System.out.println("Enter two integers to calculate their sum ");
      Scanner in = new Scanner(;
      x = in.nextInt();
      y = in.nextInt();
      z = x + y;
      System.out.println("Sum of entered integers = "+z);