public static void menuModifyAge(HousePetList hpArray)
    {
        @SuppressWarnings("resource")
        Scanner console = new Scanner(System.in);
        int hpChipID = -1;
        double newAge = -1;
        boolean modifiedAge = false;
        
        /* display list of HousePets to user so they can view the chipIDs and ages before
         * deciding to modify a HousePet's age attribute */
        HousePetListImpl.displayAll(hpArray);
        
        /* prompt user to enter chipID */
        System.out.println("Please enter the chipID for the HousePet whose age you " +
            "would like to modify:");
        
        try
        {
            hpChipID = console.nextInt();
        }
        catch(InputMismatchException e)
        {
            System.out.println("Error: a non-int was entered " + e);
        }
        catch(NoSuchElementException e)
        {
            System.out.println("Error: chipID not found " + e);
        }
        catch(IllegalStateException e)
        {
            System.out.println("Error: Scanner is closed " + e);
        }
          
        /* prompt user to enter new age */
        System.out.println("Please enter the new age for the HousePet");
        
        try
        {
            newAge = console.nextDouble();
        }
        catch(InputMismatchException e)
        {
            System.out.println("Error: a non-double was entered " + e);
        }
        catch(NoSuchElementException e)
        {
            System.out.println("Error: age not found " + e);
        }
        catch(IllegalStateException e)
        {
            System.out.println("Error: Scanner is closed " + e);
        }
        
        /* call modifyAge on hpArray since we havent looked for the HousePet yet */
        modifiedAge = hpArray.modifyAge(hpChipID, newAge);
        
        /* if age modified successfully */
        if(modifiedAge == true)
        {
            System.out.println("The age of the HousePet with chipID " + hpChipID +
                " has been updated successfully.");
        }
        
        /* if age not modified */
        else  //if(modifiedAge == false)
        {
            System.out.println("Attempt to modify age unsuccessful:");
            System.out.println("Either the new age entered was invalid (negative) or " +
                "a HousePet with chipID " + hpChipID + " was not located in the " +
                "current list");
        }
        
        return;
        
    }//end menuModifyAge()