I am trying to create a program that prompts the user to enter a name (1 of three options x,y,or z) and a certain variable (that is less than 10). If both of these inputs are true it will print out the name and the number as : (" you choose x times 2")

I am stuck because I'm new to the java scanner class (and java) and don't know how to configure the code with if statements checking two factors.

Help?

My code so far: I know a lot of it wrong:

```
import java.util.Scanner;

public class ScannerAndKeyboard {

public static void main(String[] args)
{   Scanner s = new Scanner(System.in);
    System.out.print("Welcome");
    System.out.print( "Enter your name: "  );
    String name = s.nextLine();
    System.out.println( "Hello " + name + "!" );
    System.out.print("Please Enter letter and number: " ); 

    if(s.nextLine().equals(X) && s.nextInt() <= 10)
      System.out.println( "You choose x10");
}
}

```