MCPcopy Create free account
hub / github.com/Krishna18062005/Hospital_Management_System_Java / main

Method main

Main.java:4–14  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2
3public class Main {
4 public static void main(String[] args) {
5 Patient p1 = new Patient(1, "Krishna", 21, "Male");
6
7 try {
8 PatientDAO dao = new PatientDAO();
9 dao.addPatient(p1);
10 System.out.println("Patient added successfully.");
11 } catch (Exception e) {
12 System.out.println("Error: " + e.getMessage());
13 }
14 }
15}

Callers

nothing calls this directly

Calls 1

addPatientMethod · 0.95

Tested by

no test coverage detected