Show a java console menu again after switch finishes
<p>I am trying to write a java console menu but i can't render it in the console. Here is the code i wrote so far.</p>

<pre><code>package com.registrar;

import java.util.*;

class GUIMenu {
private Course[] courses = new Course[100];
private Person[] persons = new Person[1000];

public void display_menu() {
  System.out.println("****************MENU*****************");
  System.out.println("[1] Add Course\n[2] Add Student to Course \n[3] Verify Registration \n[4] Remove Student \n[5] Add Persons");
  System.out.println("**************************************");
  System.out.println("Selection: ");
}

public GUIMenu(){
Person p = null;
Scanner in = new Scanner (System.in);
int input = in.nextInt();

switch (input){
  case 1:
    Scanner sc = new Scanner(System.in);
    System.out.println("Enter Course Name: ");
    String name = sc.nextLine();
    System.out.println("Enter Course ID:");
    Integer cID = sc.nextInt();
    System.out.println("Enter Instructor ID:");
    Integer pn = sc.nextInt();
    for(int i = 0; i &lt; persons.length; i ++){
        System.out.println(persons[i]);
    }
    for(int i = 0; i&lt;persons.length; i++){
        if(persons[i] !=null){
            if(persons[i].getId().intValue() == pn){
                System.out.println("Record Found");
                p  = persons[i];
            }
            else
                System.out.println("Record Not Found");
        }
    }
    Course c = new Course(name, cID);
    if(p!=null){
        Instructor ins = new Instructor(p);
        c.setInstructor(ins);
    }
    System.out.println(c + " has been created");

    for(int i = 0; i &lt; courses.length; i ++){
        if(courses[i] == null){
            courses[i] = c;
            break;
        }
    }
    new GUIMenu();
  case 2:
      for(int i = 0; i &lt; courses.length; i ++){
          if(courses[i] != null)
              System.out.println(courses[i]);
      }
      break;
  case 3:
    System.out.println ( "You picked option 3" );
    break;
  case 4:
    System.out.println ( "You picked option 4" );
    break;
  case 5:
      Scanner pers = new Scanner(System.in);
      System.out.println("Enter Person Name: ");
      String pname = pers.nextLine();
      System.out.println("Enter Person ID:");
      Integer oiID = pers.nextInt();
      Person per = new Person(pname, oiID);
      for(int i = 0; i &lt; persons.length; i ++){
        if(persons[i] == null){
            persons[i] = per;
            break;
        }
      }
      display_menu();
  default:
    System.err.println("Unrecognized option");
}
}

public static void main ( String[] args ) {
    GUIMenu a = new GUIMenu();
    a.display_menu();
}
}
</code></pre>

<p>I am trying that after a selection on the menu the code returns the menu again after completing the code associated with that particular selection. What i am doing wrong? I dont see the menu at all displaying.</p>
