In Java we have these wonderful things called logical operators. They are && and ||. The ampersand signs stand for and, while the straight lines stand for or.
To rewrite your code we can use the ampersand.
if (x > 0 && x < 10){
System.out.println("Positive single digit number.");
}
I hope this helps!