Write a loop to iterate through the list of paycheck strings, which Split the paycheckData parameter on the # to get each paycheck ParseEmployeePaychecks(int empID, String paycheckData)ĭeclare an ArrayList of Paycheck elements and initialize to an PeriodBeginDate2:periodEndDate2:grossAmount2:taxAmount2:bonusAmount2#. PeriodBeginDate1:periodEndDate1:grossAmount1:taxAmount1:bonusAmount1# That the String parameter has the following format: Paychecks the employee has received and which the method converts Returns an ArrayList of Paycheck elements.Įmployee id, whereas the String parameter represents the list of Parameters: one of type int and one of type String. Method called parseEmployeePaychecks that has two Moodle the solution I posted for the project. Understand instructions with knowing what pahse 1 looks like. You can use this link for phase 1, as it might be easier to Them before the loop and then I add each elemnt of the array toĬontain each of the parameters to for loop during the iteration, orĭo i use them from phase 1, althguht they should be private Need help with creating code for this intructions and most ofĪll please include comments on how you understood it, I cannont
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |