public static void casei(){

	
		
		boolean correct_input = false;
		int course_index = 0;
		Course current_course = null;
		while(!correct_input){
			try{
				String course_name = JOptionPane.showInputDialog(null, "Enter the course name of the waiting that you want to see: ", "Waiting List", JOptionPane.INFORMATION_MESSAGE).toUpperCase();
				//check to see if the course exists
				
				
				java.util.Iterator<Course> iter = course_list.iterator();		
				while(iter.hasNext()){
					
					//grab the first course
					current_course = iter.next();
					if(course_name.equals(current_course.getName())){
						correct_input = true;
						break;
					}
					else{
						correct_input = false;
					}
				}
				//if the input is not valid go back to the main menu
				if(!correct_input){
					throw new CourseNotFoundException("CourseNotFoundException.");
				}
			}
			catch(CourseNotFoundException ex){
				JOptionPane.showMessageDialog(null, "Course not found", "ERROR", JOptionPane.INFORMATION_MESSAGE);

			}
			catch(IllegalArgumentException ex){
				JOptionPane.showMessageDialog(null, "Illegal Argument", "ERROR", JOptionPane.INFORMATION_MESSAGE);
			}
		}
		
		JFrame frame = new JFrame("Waiting List");
		frame.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 20));

		frame.setSize(400, 300);
		frame.setLocation(400, 100);
		frame.setVisible(true);
		frame.add(new JLabel("Waiting List for " + current_course.getName() + ":"));	
		
		java.util.Iterator<Student> iter =  current_course.waiting_list.iterator();
		while(iter.hasNext()){
			Student student = iter.next();
			frame.add(new JLabel(student.getName() + "    " + student.getId()));	
		}
	}