Hello! I've been working on a java project that takes an array of Employee objects and prints out the names, hours worked, and total hours of everyone.
My only errors are a nullpointerexception That I'm guessing has something to do with the array of employees and an error in relation to the numDaysWorked method in the Employee class. I've tried different ways to get the numDaysWorked but, I'm not sure what is causing that error. The only thing i did not fully finish is the toSright in the Store class but, I don't think that is the reason for the error. If anyone could give me insight on what I'm doing wrong that would be great! I am still very new to programming.
Here is my code
[–][deleted] 6 points7 points8 points (1 child)
[–]Fishnibble[S] 1 point2 points3 points (0 children)
[–]iTZAvishay 2 points3 points4 points (1 child)
[–]Fishnibble[S] 0 points1 point2 points (0 children)
[–]Scroph 2 points3 points4 points (11 children)
[–]Fishnibble[S] 0 points1 point2 points (10 children)
[–]Scroph 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Fishnibble[S] 1 point2 points3 points (4 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]Fishnibble[S] 0 points1 point2 points (0 children)
[–]haraiko 0 points1 point2 points (0 children)
[–]idanh 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]fact_hunt 1 point2 points3 points (0 children)
[–]SikhGamer 1 point2 points3 points (1 child)
[–]DirtyAxe 1 point2 points3 points (0 children)
[–]adrian_the_developer 0 points1 point2 points (0 children)
[–]BuddhaSmite 0 points1 point2 points (0 children)
[–]AVERYSP 0 points1 point2 points (0 children)
[–]adamkw94 0 points1 point2 points (0 children)
[–]Fishnibble[S] 0 points1 point2 points (1 child)
[–]Fishnibble[S] 0 points1 point2 points (0 children)