Logical operators can simplify nested conditional statements. For example, can you rewrite this code using a single if statement?

if (x > 0) {
if (x < 10) {
System.out.println("positive single digit number.");
}
}