reset password
Author Message
jkang
Posts: 33
Posted 14:23 Oct 19, 2016 |

Confused on the size of the int array. Array size is set, but what do we set it to?

jhurley
Posts: 207
Posted 16:28 Oct 19, 2016 |
jkang wrote:

Confused on the size of the int array. Array size is set, but what do we set it to?

keep track as you go of how many items are in the set.  The last array index to look at will always be one less than the number of items in the set.

jkang
Posts: 33
Posted 15:35 Oct 26, 2016 |

So is the user supposed to be allowed to pass an array of any size?

Also, can we use the methods included in java.utils.Arrays?

Last edited by jkang at 15:42 Oct 26, 2016.