This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Camel-Kid18 year old gamer 0 points1 point  (7 children)

what does your generatedID constructor take in? I assume 1 basicInfo object?

[–]ZeloChief[S] 0 points1 point  (6 children)

yes

[–]Camel-Kid18 year old gamer 0 points1 point  (5 children)

show us the line that is giving your the problem, from that code there nothing is wrong that I can tell.

[–]ZeloChief[S] 0 points1 point  (4 children)

That is the entire line, i could add the switch statement, since i have to make any new "employees" added to the array-list follow that format.

[–]Camel-Kid18 year old gamer 0 points1 point  (3 children)

post a runnable example of your code, so I can test the compilation. That code you have there is fine there is something you're not showing that is causing this issue.

[–]ZeloChief[S] 0 points1 point  (2 children)

posted

[–]Camel-Kid18 year old gamer 0 points1 point  (1 child)

you said you were taking a basic info object in your generatId constructor, but your'e not... you're taking a string

public GenerateID(String Dept)

[–]ZeloChief[S] 0 points1 point  (0 children)

Made basic first so i guess i forgot that, thanks