Tanya Stolz wrote: I loaded the file into an Arraylist...
...but now I cannot figure out how to loop through find the In and Out date - calculate the hours worked and then move on to the next day.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Tanya Stolz wrote:I did the entire project with no problems until here - I sent everything to a file in string format with tabs. I thought it would be easy to bring it back in and compare not the case. I tried to bring the string date back
in and convert to date and it converted but to no avail did not do what I expected.
I understand how to write simple things but when it came to this part I cannot wrap my mind around the How To -
I know it is very messy all of that became because I was so stressed. I just started putting things in there just to see if and what was in the index. I should have removed all of that before submitting.
I do have two classes Employee for Id, first and last name. And TimeClock which holds the emp ID, place holder punch I or O, date, time, day. Should I be using the classes and not the file?
I guess I really am not grasping the looping and comparing methodology...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Tanya Stolz wrote:I am going to tear it apart and try adding methods to grab the date and time. I have done all the basics throughout the class and really found it easy until this...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Tanya Stolz wrote:Here are the guidelines for this project...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|