package hello-var;

public class HelloWorld-Variables {

    public static void main(String[] args) {
        // TODO Auto-generated method stub

        int x = 9;       //Declaring a value for x, y and adding them together
        int y = 1;
        int xy = x + y;
       
        System.out.println("Hello");  //Notice how you need to add quotation marks for text? 
                                      //You don't need to do so for variables
        System.out.println("Sum: "+xy); //Blending Text along with a variable
    }

}

Create hello-var.java