I have it going in a complete loop and don't kn ow how to make it stop : my teacher asked us to create a magic 8 ball program in java 8.  we have to use 3 methods, a main, a processing, and an output and we need to pass parameters between the methods. the output needs to use the switch statement, we need to have a while statement in there and the answers need to be randomly generated.  I have everything required but when I try to run the program it is stuck in the while loop and I don't know what I did wrong.
here is what I have:

       import java.util.*;
       public class Magic8Ball {
       public static void main(String[]args) {
         Scanner input = new Scanner(System.in);
         System.out.print("Would you like to ask a question? Y or N: ");
         char answer = input.next().charAt(0);
         char Y = Character.toUpperCase(answer);
         process(answer, Y);
         }
       public static void process(char a, char Yes) {
          if (a != Yes) {
            System.out.println("Thank you, goodbye.");
          }
          else {
            while(a==Yes) {
              System.out.print("Ask your question: ");
              Random random = new Random();
              int ran = random.nextInt(8-1+1)+1;
              output(ran);
              }
             }
            }
      Public static int output(int r) {
         switch (r) {
           case 1: System.out.println("Out of memory, try again later); break;
           case 2: System.out.println("The probability matrix supports you."); break;
           case 3: System.out.println("That does not compute."); break;
           case 4: System.out.println("System error, try again later"); break;
           case 5: System.out.println("Siri says yes."); break;
           case 6: System.out.println("The asnwer could not be found on the internet."); break;
           case 7: System.out.println("Wikilinks claims it is true."); break;
           case 8: System.out.println("Siri says no."); break;
           default: System.out.println("The system is not responding, try again later"); break;
           }
          return r;
          }
         }
                        


        