Something like
while (!in.hasNextInt()) {
in.next();
System.out.println("Input must be a number.");
}
int numA = in.nextInt();
while (numA < 0 || numA > 10) {
System.out.print("Enter a number 1-10: ");
numA = in.nextInt();
}
A.add(numA);
Edit: Considering the above, I would harden the solution more like the following
while (true) {
if (!in.hasNextInt()) {
System.out.println("Input must be a number.");
in.next();
} else {
int num = in.nextInt();
if (num < 0 || num > 10) {
System.out.println("Input must be between 1 and 10 (inclusive).");
} else {
// add num to collection
break;
}
}
}