October 15, 2016
Before we proceed with today’s code. I assume you have already added an age variable in our Kid class. For convenience purpose, I assume it is public. If not, please add that public Integer age into your Kid class first. Now let’s reopen our Util class. Util class is defined in our previous post: 3.4 Pass by value and pass by reference .