A NullPointerException means that you tried to access a value that was never set to something. It means you tried to do "null.Something". In this case, it seems like emp[0] is null. Meaning you declared the array, but you didn't fill it with anything. You need to actually make employees to put in there.
No comments:
Post a Comment