You can just use:
Random r = new Random();
int result = 0;
for (int i = 0; i < 2; ++i) {
   result += (r.nextInt(10) + 1);
}
System.out.println(result);
If you want to be clearer about the particular numbers, try:
int num1 = r.nextInt(10) + 1;
int num2 = r.nextInt(10) + 1;
System.out.println(num1 + " + " + num2 + " = " + (num1 + num2));
EDIT: in answer to a followup question, this approach will prompt a user to input an amount
public static void main(String[] args)
{
    Random r = new Random();
    final int MAX = 10;
    // get two random numbers between 1 and MAX
    int num1 = r.nextInt(MAX) + 1;
    int num2 = r.nextInt(MAX) + 1;
    int total = (num1 + num2);
    // display a question
    System.out.printf("What is your answer to %d + %d = ?%n", num1, num2);
    // read in the result
    Scanner stdin = new Scanner(System.in);
    int ans = stdin.nextInt();
    stdin.nextLine();
    // give an reply
    if (ans == total) {
        System.out.println("You are correct!");
    }
    else {
        System.out.println("Sorry, wrong answer!");
        System.out.printf("The answer is %d + %d = %d%n", num1, num2,
                (num1 + num2));
    }
}