boolean bolehTidak(Mk mk) {
   boolean status = true;
   for (int a = 0; a < mk2List.size(); a++) {
     if (mk2List.get(a).getKd_mk().equals(mk.getKd_mk())) {
       status = false;
       break;
     } else {
       status = true;
     }
   }
   return status;
 }
 void isitabelKrs() {
   Object data[][] = new Object[mk2List.size()][4];
   int x = 0;
   for (Mk mk : mk2List) {
     data[x][0] = mk.getKd_mk();
     data[x][1] = mk.getMk();
     data[x][2] = mk.getSks();
     data[x][3] = mk.getJurusan();
     x++;
   }
   String[] judul = {"Kode", "Nama", "Sks", "Jurusan"};
   tableAmbil.setModel(new DefaultTableModel(data, judul));
   jScrollPane1.setViewportView(tableAmbil);
 }