reset password
Author Message
abubakir
Posts: 14
Posted 01:02 Sep 02, 2017 |

any hints on how to do the last bullet of lab one

jhurley
Posts: 207
Posted 09:36 Sep 02, 2017 |

The point of main() is to show that each of the other methods worked correctly.  For example, after you run the method that copies the array and changes the new array, run the print method twice, once sending it the reference to the old array and once with the reference to the new array. If they turn out to have the same values, that means you made a mistake in the copy method.