Professional Documents
Culture Documents
Отчет
Отчет
// --------Закрытие--------
public static void CloseDB() throws ClassNotFoundException, SQLException
{
conn.close();
statmt.close();
//System.out.println("Соединения закрыты");
}
Class Student
public class Student {
private int id;
private String name;
private String surname;
private String middlename;
private int age;
private String faculty;
private String specialty;
private int course;
private String form_of_study;
private double study_price;
Student(){
this.study_price = 0;
}
Class main
import java.sql.SQLException;
import java.util.Scanner;
}
} while (choice != 6);
}
}