I have the code here but I'm having problems with it.

```
public static void main(String[] args) {
    Scanner keyboard = new Scanner(System.in);
    System.out.println("Please input 3 integers: ");
    int w = Integer.parseInt(keyboard.nextLine());
    int a = Integer.parseInt(keyboard.nextLine());
    int s = Integer.parseInt(keyboard.nextLine());
    int max = Math.max(w, a);
    if (max > a) {
        max = Math.max(a, s);
        max = Math.max(a, s);
        int min = Math.min(w, a);
        if (min > a) {
            min = Math.min(a, s);
            min = Math.min(a, s);
        }
    } else {
        max = Math.max(a, s);
    }
    System.out.println("The max of three is: " + max);
    System.out.println("the minimum of the three is: " + min);
}

```