阅读背景:

将对象存储在数组中,我的值在我的数组中不断变化

来源:互联网 

So I have a while loop which stores all of my variables, but my problem is that whenever the program loops it changes the values of the object in the previous array. So employeeArray is filled with all objects of the same values rather than storing the previous value and creating a new one. I am reading text from a .csv file. Can somebody please explain to me how to store my Employee objects without them changing each loop? Let me know if you need any clarification I know I probably missed some information somebody trying to help me may need. Anyways my code is below, I have 3 different classes but Im just going to put the Employee and EmpQuery class on here. I believe the problem is with my variables in the Employee class. PLEASE HELP ME, it would be greatly appreciated.So I have a while loop which stores all of my v




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: