public void simpan(Mahasiswa k) {
		try {
			Connection c = koneksi.connect();
			long myId = 0;

			String sqlIdentifier = "select * from mahasiswa";
			PreparedStatement pst = c.prepareStatement(sqlIdentifier);
			synchronized (this) {
				ResultSet rs = pst.executeQuery();
				if (rs.next()) {
					myId = rs.getLong(1);
				}
			}
			try {
				String sql = "insert into mahasiswa (npm, nama, tempatLahir, tanggalLahir, jenisKelamin, alamat) values (?,?,?,?,?,?)";
				PreparedStatement ps = c.prepareStatement(sql);
				ps.setString(1, k.getNpm());
				ps.setString(2, k.getNama());
				ps.setString(3, k.getTempatLahir());
				ps.setString(4, k.getTglLahir());
				ps.setString(5, k.getJenisKelamin());
				ps.setString(6, k.getAlamat());
				ps.executeUpdate();
				koneksi.disconnect(c);
			} catch (SQLException e) {
				// TODO: handle exception
				e.printStackTrace();
			}
		} catch (SQLException ex) {
			Logger.getLogger(MahasiswaDao.class.getName()).log(Level.SEVERE, null, ex);
		}
	}