This is my code: 

```
import java.util.*;
import java.util.Scanner;

public class Assignment2 {
    public static void main(String args[]){ 
        Scanner stdin = new Scanner(System.in);

        Random random = new Random();     
        int ran2 = (random.nextInt(10));
        int ran1 = (random.nextInt(10));
        int total = ran1 + ran2;
        char exit = 'y';

        System.out.println("First cards: " + ran1 + ", " + ran2);
        System.out.println("Total: " + total);

        while(exit != 'n' && total < 21){
            System.out.println("Do you want another card? (y/n): ");
            exit = stdin.next().charAt(0);

            System.out.println("Card: "+ (random.nextInt(10)));
            total = total + (random.nextInt(10));
            System.out.println("Total: "+ total);

        }   

    }       
}

```

When I enter `n`, how can I make it so the program exit, instead of printing out the total again?