public static void saveCSV(JTable main, JTable cTable, JTable iTable){
		String fileurl;
		JFileChooser chooser = new JFileChooser();
		File file = new File("Schedule.csv");
		
		int returnVal = chooser.showSaveDialog(null);
		if(returnVal == JFileChooser.APPROVE_OPTION){
		 file = chooser.getSelectedFile();
		 String filePath = file.getPath();
		 if(!filePath.toLowerCase().endsWith(".csv"))
		 {
		     file = new File(filePath + ".csv");
		 }

		try {
			PrintWriter writer = new PrintWriter(file, "UTF-8");
			writer.println("<main start>");
			printTable(main, writer);
			writer.println("<main end>");
			writer.println("<instructor start>");
			printTable(iTable, writer);
			writer.println("<instructor end>");
			writer.println("<course start>");
			printTable(cTable, writer);
			writer.println("<course end>");
			
			writer.close();
			
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		} else if(returnVal == JFileChooser.CANCEL_OPTION){
			
		}
	
		
	}