op here, ArrayList <String> sr=new ArrayList(); should not be there..
the actual arraylist is
ArrayList<Patient> PatientList = new ArrayList<Patient>();
Name:
Anonymous2011-09-21 0:19
its been a while since i did java so i've sort of forgotten,
but yea i'd say somethings wrong with the last two lines. google Java ArrayList and this guys has some pretty decent tutorials that might help you out: www.thenewboston.com
i basically passed uni without attending lectures thanks to this guy.
Patient.add(patient); should be patients.add(patient);
Name:
Anonymous2011-09-21 18:52
>>1
Nigger boy, we aren't mind readers. Post some working code or go back to scrubbing the toilets. Cripes, you are the reason why HR screens people prior to the first interview.
Name:
Tedda2011-09-21 18:55
fucks sake let me redo that:
// Add patient objects
if (menuOption.equals("7")) {
ArrayList<Patient> patientsList = new ArrayList<Patient>();
>>20
What the hell? Are you fucking stupid? Someone just asked you to post some complete working code. That didn't imply post another code snippet.
Name:
Tedda2011-09-21 18:57
not sure if thats what u are trying to do matey, but it adds the patient object to a list of patient objects. Fuck knows what you were trying to do, i just guessed, all that string nonsense i just ignored.
Name:
Anonymous2011-09-21 19:00
>>22
You both suck. Now I see why I don't hire people like you.
Name:
Tedda2011-09-21 19:01
>>21
Code snippet of what exactly?? im trying to figure out wtf that code is supposed to be doing
Assign values to a bunch of variables
construct a class with those variables
fuck up an arraylist declaration
then add a string to a static class...
>>24
I can't tell if you're mentally retarded or just plain stupid. By code snippet, I mean, if I cut and paste your code into my compiler, the thing doesn't run because it isn't complete java working code.
Name:
Anonymous2011-09-21 19:05
er *working java code*. Ya know know Tedda, I don't think anyone else here is gonna help you because quite frankly, you are a stupid nigger. This joint has enough of them. The only reason I'm even giving you the time of day is because I need to be reminded that there are people more pathetic than jews.
Name:
Tedda2011-09-21 19:06
Look im spoon feeding it already, im not chewing it first.
Name:
Tedda2011-09-21 19:08
You want me to make up code, for a code snippet he wrote that doesnt make sense, that probably wouldnt be relevant to his problem anyway? i could code all manner of things and chuck a load of working code up, doesnt mean its what he needed.
>>28
What isn't relevant to you might be relevant to the rest of us. There error could lie anywhere. So again, either put up some complete working java code that illustrates your problem or just go fuck off and go another board that can read the mind of a retard.