• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to automatically increment ID and then display only one ID in report  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know how to complete the following steps
o The program shall assign a new employee ID to the employee and display it on the screen.
o The employee ID shall be generated by adding 1 to the largest employee ID already in the employee.txt data file.

you can see I've tried variations of identification++ but have not been successful. I've also tried to get the last or the highest identification in the arrayList but have not done that right.










I also can display all of the employees their identifications and their punches but I cannot narrow it down to searching one employee and displaying information for just the one.

o If the selected value is ‘I’, prompt the user to enter the employee’s ID number.
If ‘I’ is selected the display shall show the employee’s name and ID, list out each day worked in chronological order, the number of hours worked that day and a total number of hours worked in the two week period.
The report shall prompt the user to re-enter an employee ID of it does not exist in the employee file.




I appreciate the help!

Thank you
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody else asked a similar question recently. Try here. You may find those replies answer your question too.
Why have you got static methods?

Are you both doing the same course?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!