Campbell Ritchie wrote:There is an easier way t do that, which also obviates any risk of empty places in your array or overrunning the bounds of the array. I have done that by deleting parts of your code:-That is of course called an array initialiser. You will have your eight elements as long as you counted them correctly.
Why did you use two loops; you could have done both printouts in the same loop? Why are you not using both versions of the constructor, as it said in your first post?
Array initialiser? Dont think we've learned that yet. I put the paystubs in a different loop cause I have to do a little more with them and right now it's just easier if I have them separate. I dont understand what she means by both constructors. I dont understand how I can use the default one then use a conversion one. Wouldnt the conversion overwrite everything anyway since I am passing it information?