rereun and quit program using ‘y’ and ‘n’

how can i rerun the program using 'y' and 'n'??

package com.company;

    import java.util.Scanner;

    public class Main {
        public static void main(String[] args) {
            Scanner reader = new Scanner(System.in);
                while (true) {
                    System.out.print("Enter a number: ");
                    int num = reader.nextInt();

                    if (num > 0) {
                        String number = (num % 2 == 0) ? "even number" : "odd number";
                        System.out.println(num + " is " + number);
                        break;
                    }
                    if (num < 0) {
                        System.out.print("Please enter a positive number. ");
                        System.out.print("\n\n");
                    }
                }
            }
        }