I just started an intro to java programming class so I do not know much. I am having trouble obtaining the middle digit of the lottery variable. I used `int lotteryDigit1 = lottery / 100;` and `int lotteryDigit2 = lottery % 100;` to get the first and last number but I am having trouble getting the middle digit.

```
import java.util.Scanner;
public class Lottery {`enter code here`
    public static void main(String[] args) {

        //generate random lottery numbers 
        int lottery = (int)(Math.random() * 100);

        //ask user to enter a 3 digit guess
        Scanner numbers = new Scanner(System.in);
        System.out.println("Please enter your lottery pick. Three Digits Only");
        int guess = numbers.nextInt();

        //digits for lottery
        int lotteryDigit1 = lottery / 100;

        int lotteryDigit2 = lottery % 100;

        //digits for guess
        int guessdigit1 = guess / 100; 
        int guessdigit2 = guess % 100; 

```