it should let me add as many employess to a list as I want...this program should also let me remove employees when i need to and then let me print out the list with all the information for each employee
I think what Keith is asking is what is it not doing that it should be doing. What does your test program look like and where is its output doing something unexpected? [ February 05, 2006: Message edited by: Garrett Rowe ]
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
oh sorry.....its not letting me add more than two employee to the list even though I have a method to make a different array that is bigger.... also whenever I ask it if the list is empty or not it always says it empty even if its not.
I don't know the cause of you particular problem -- but I did find 2 errors.
1. Your second contructor does not work. You never set the capacity, nummber of elements, or initialze the list, like you did in your default constructor.
2. You remove method is wrong. You merely zapped out the element to remove, and lowered the size. This will only work for the last element -- deleting any other element just gives you a null element, and a lost last element.