Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java casting

Name: Anonymous 2011-09-20 22:44

Is anyone willing to lend a helping hand? I'm having some trouble getting Patient.add(patientNo()); to work


                // Add patient objects
                if (menuOption.equals("7")) {
                   
               
                String patientNo = "OU107";          
                String patientName = null;
                String procedureDate = null;
                String description = null;
                String supervisingDoctor = null;
                String patientStatus = null;
                new Patient(patientNo, patientName, procedureDate, description, supervisingDoctor, patientStatus);   
               
                ArrayList <String> sr=new ArrayList();
               

                // This wont accept my string
                Patient.add(patientNo());
               
               
                }

Name: Tedda 2011-09-21 18:55

fucks sake let me redo that:

                // Add patient objects
                if (menuOption.equals("7")) {

                ArrayList<Patient> patientsList = new ArrayList<Patient>();
             
                String patientNo = "OU107";        
                String patientName = null;
                String procedureDate = null;
                String description = null;
                String supervisingDoctor = null;
                String patientStatus = null;
                Patient patientInstance = new Patient(patientNo, patientName, procedureDate, description, supervisingDoctor, patientStatus); 
             
                patientsList.add(patientInstance);

                }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List