Raul Mihai wrote:All good so far but now I have to prepare the final assignment ( for tomorrow !!!) for which i have been trying to do in the past week but i got stuck somewhere and i can t seem to be able to find a solution
Raul Mihai wrote:my problem here is that i can not search for a patient or remove it. i know there is a remove method for arraylists but i can t seem to be able to make it work with my lists ( and taking user input - i would like to give user a choice to pick the number of the list to be able to delete it )
come straight to the point, show only relevant snippets of code and describe your problem clearly. That is, describe what you were trying to do, show the code that you tried to do it with, what results you expected and what your actual results were.
Campbell Ritchie wrote:multiple Lists in parallel is a disaster waiting to happen.
Carey Brown wrote:This is a disaster waiting to happen
All right, then, OP will see what sort of disaster it is as soon as he tries to delete a name.Junilu Lacar wrote:. . . it's a full-blown disaster already . . . .
At school in the 3 hours / week of object oriented programming
No, but you will probably get away with it if you shoot the instructor and use that code as a defence: “provocation”Steven Fraser wrote:. . . Can you get your money back . . .
Carey Brown wrote:
...
This is a disaster waiting to happen. A 'Patient' class should be created to hold this info. Have one field in the Patient class for each of these attributes.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:Java classes can be used for rows in an SQL table and the fields in a class for columns. An entire table might be List<MyClass>.
Knute Snortum wrote:...An entire table might be List<MyClass>.
Ricky Bee wrote:
- Is it normal practice in Java to mirror tables into classes and fields into data variables?
- Is it a good pratice so that some back-end database system can then be utilized?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |